SQLSTATE 55P02Severity mediumLab verified

Incident brief

Cannot change runtime parameter

A session tried to SET a parameter that can only be changed by restarting the server. PostgreSQL rejected the SET instead of silently ignoring it.

What lands in your log

ERROR: parameter "max_connections" cannot be changed without restarting the server

Reproduced on PostgreSQL 16.14Verified 2026-07-16 (Docker lab, PostgreSQL 16.14)Verified against PostgreSQL 16.14 in an isolated lab environment

In 10 seconds

What triggers it
Run SET max_connections = 200; inside an ordinary session.
Fix
Use ALTER SYSTEM SET to write the new value, then actually restart the server, reloading the config file (pg_reload_conf()) is not enough for a postmaster-context parameter.
Proof
Reproduced on PostgreSQL 16.14 → SET max_connections = 200; inside a session was rejected with SQLSTATE 55P02, because max_connections is a postmaster-context parameter.

Fix

What to do right now

Application-level steps for this error.

  • Use ALTER SYSTEM SET to write the new value, then actually restart the server, reloading the config file (pg_reload_conf()) is not enough for a postmaster-context parameter.
  • Don't assume pg_reload_conf() returning true means the change took effect, see the premium counterexample for proof it doesn't, for this parameter.
Fix SQL
ALTER SYSTEM SET max_connections = 150;
-- then actually restart the server (not just pg_reload_conf())

Connected

Everything this error touches

Every page this SQLSTATE connects to: the concept that explains it, the runbooks that fix it, the parameters you tune to prevent it, and the sibling errors it travels with. All real cross-references. Jump straight in, or open the full interactive map.

Open in the interactive map →

Verification

PG 16.14
Last verified
2026-07-16 (Docker lab, PostgreSQL 16.14)
Verification scope
Verified against PostgreSQL 16.14 in an isolated lab environment
Audit status
reviewed
ShareLinkedInX

Went further?

Pro unlocks the second lab proof

Free page stops the bleeding. Pro adds the operational test, SQLSTATE audit, and deeper evidence, same error, more certainty.

FollowSubstackLinkedInnew errors · lab notes · hiring loops