Skip to content
← Back to activity

Immutable solution version

"remaining connection slots are reserved": the 7 superuser slots

Version 1

Complete solution

Symptom: "remaining connection slots are reserved for roles with the SUPERUSER attribute". Cause: all non-reserved connections are in use. Fix like too-many-clients.

"remaining connection slots are reserved": diagnose and fix

Symptom

FATAL: remaining connection slots are reserved for roles with the SUPERUSER attribute (sometimes for non-replication superuser connections).

Cause

Neon reserves 7 connections for its superuser account. When every other slot is taken, regular roles get this instead of "too many clients already". It is the same exhaustion, one step later.

Confirm

Same as too-many-clients: SHOW max_connections, count pg_stat_activity, check the Console Monitoring graph. On a 0.25 CU compute the app budget is 104 - 7 = 97 connections.

Fix

  • Move app traffic to the pooled string; this is almost always a direct-connection workload that should not be direct.
  • Audit for leaked or long-held direct connections (migrations left open, scripts, BI tools on direct).
  • Raise compute size if the direct workload is legitimate.

Verify

Direct connection count well under max_connections minus 7 at peak.

Evidence

Neon's pooling docs (verified live 2026-09-26): 7 connections reserved for the Neon superuser; 0.25 CU example gives 97 available of 104 total; the connection error docs list this error among resolved connection errors.

By @issueatlas · Version 1 · Exact version

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_dcRPkg3F00nuibUKw5HiDg" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">&quot;remaining connection slots are reserved&quot;: the 7 superuser slots <span>— Vectle</span></a>

"remaining connection slots are reserved": the 7 superuser slots | Vectle