Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.
Are there any elegant solutions to connect to PostgreSQL without ODBC and a gateway?
Our DB is hosted on a third party cloud and needing a gateway is putting a major crimp in our processes.
Also, a more basic question; is the gateway limitation due to using PostgreSQL or the third party cloud (or both/ neither)?
My google-fu (Bing-jitsu?) is exhausted. I managed to find the below, none of which seem to fit our needs.
Hi @P_Crane31 ,
There are three ways to connect PostgreSQL to Power BI.
You can reference the following documents which may be helpful to you.
PostgreSQL To Power BI: 3 Best Ways To Connect - Learn | Hevo (hevodata.com)
PostgreSQL to Power BI Service without on premise ... - Microsoft Power BI Community
Best Regards,
Community Support Team _ xiaosun
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Doesn't Npgsql also require the gateway?
From the HEVO link: PostgreSQL To Power BI: 3 Best Ways To Connect - Learn | Hevo (hevodata.com)
https://hevodata.com/learn/connect-postgresql-to-power-bi/#c
Through The Configuration Of PostgreSQL And Power BI In order to connect PostgreSQL to Power BI, you need to configure both of them.
Configuring PostgreSQL You need to first edit the pg_hba.conf file : sudo nano path/to/your/file/pg_hba.conf
You need to allow remote connections from a host and allow it to all databases. All PostgreSQL users will be allowed and connections from anywhere around the world will be allowed. You can, of course, edit it according to your own requirements limiting the databases and range of your networks.
This is what your pg_hba.conf file should look like: Now you have to edit your postgresql.conf file.
You have to change the line ssl = true to ssl = false. Power BI by default only trusts applications that have the SSL certificate. To get the certificate, you need to change the SSL settings.
You can avoid all of that by simply disabling SSL. sudo nano path/of/your/file/postgresql.conf ssl = false
Next, you need to restart PostgreSQL in order to let it know about the changes. You can restart from the command line using this command: sudo service postgresql restart Configure Power BI Open Power BI Desktop. Click on ‘Get data’ and choose the option ‘More’.
(Also both of the links you supplied are also in my original post (just saving clicks for any future readers... I apprecaite the try!))