Configuration Limit Exceeded — SQLSTATE 53400
SQLSTATE 53400 condition configuration_limit_exceeded class 53 — Insufficient Resources severity ERROR
Reproduced & verified on PostgreSQL 14.23, 15.18, 16.14, 17.10 and 18.4 — identical message on every version.
Last reviewed 29 May 2025 · Reproduced live with the SQL on this page.
! Symptoms Free
A configured resource limit was exceeded.
- The error is written to the server log and returned to the client carrying
SQLSTATE 53400. - Any driver (libpq, JDBC, psycopg, npgsql, pgx) surfaces this code in its error object so you can branch on it programmatically.
- PL/pgSQL can trap it by name:
EXCEPTION WHEN configuration_limit_exceeded THEN.
1 Environment & reproduce Free
Severity: ERROR | PostgreSQL versions: 12, 13, 14, 15, 16, 17
Most often seen under load or on under-provisioned servers; correlate it with system metrics (CPU, memory, disk, connection count) at the time of the error.
? Root cause Free
A finite configured limit (shared memory, prepared transactions, locks per transaction) was hit.
3 Recovery & verify Free
Steps to resolve 53400:
- Identify the limiting parameter from the log.
- Raise it appropriately (kernel shared memory,
max_prepared_transactions,max_locks_per_transaction) and restart if required.
Reference: PostgreSQL error codes — Class 53 (Insufficient Resources).