Report this

What is the reason for this report?

FATAL: remaining connection slots are reserved for non-replication superuser connections.

Posted on June 23, 2021

I created a database yesterday and was able to connect to it. Today , I can’t and I’m getting this error: [53300] FATAL: remaining connection slots are reserved for non-replication superuser connections. I tried creating a connection pool but getting this error [08P01] ERROR: pgbouncer cannot connect to server. when trying to connect to it.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi @GiantSeaGreenClam,

You’ll need to Edit the PostgreSQL configuration file and increase the value for max_connections. The value for shared_buffers may also need to be increased.

You may see here how more connections have been created:

https://www.digitalocean.com/community/tutorials/managed-databases-connection-pools-and-postgresql-benchmarking-using-pgbench

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.