Error code

PostgreSQL 53300

POSTGRESQL53300
Database Error Code· An error code returned by a database server such as PostgreSQL or MySQL.

What it means

too_many_connections — all connection slots are taken.

How to fix it

  1. Add a connection pooler such as PgBouncer in front of the database.
  2. Increase max_connections in postgresql.conf and restart the server (requires a service restart).
  3. Audit long-running idle sessions and close them with pg_terminate_backend().

Not affiliated with PostgreSQL. Answer summarized from the manufacturer's manual linked above; consult that source for the authoritative procedure.