Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

PowerBI using too many connections to PostgreSQL - refreshing data results in an error

Hi all, 
My dashbaord has 10 tables connected to the same PostgreSQL database through a gateway. 

I am getting the following error on desktop:
"OLE DB or ODBC error: [DataSource.Error] PostgreSQL: 53300: remaining connection slots are reserved for non-replication superuser connections."

Also, getting this error from the published version of the dashboard: (error shortened by me)
{"error":{"code":"DM_GWPipeline_Gateway_MashupDataAccessError","pbi.error":{"code":"DM_GWPipeline_Gateway_MashupDataAccessError","parameters":{},"details":[..............,"53300: remaining connection slots are reserved for non-replication superuser connections"}},{............],"exceptionCulprit":1}}} Table: view_result."

Trying to increase the number of max connections allowed from 50 to 100 on the DB allowed the connections seen to increase even more. see this chart showing the max number of active connections: 


Has anyone faced similar situation or has a logical explanation? How can one refine and lower the number of connections?

Thank you 

2 Replies