7 runbooks across 22 operational domains

The PostgreSQL Cookbook

Full-incident runbooks for the failures single error pages can't cover — replication lag, autovacuum bloat, lock storms, failovers. Each one a complete diagnose → fix → verify playbook.

7recipes
22domains
14–18PG versions covered
Step-by-stepdiagnose → fix → verify

★ Recently added

Showing 7 of 7 recipes
Domain: Schema & Constraints clear ×
Schema & Constraints

Not Null Constraint Add Column Contains Null Values

ALTER TABLE ... ALTER COLUMN ... SET NOT NULL fails with SQLSTATE 23502 and the message "column ... of relation ... contains…

5 steps ~15 min Diagnose → Fix → Verify
Schema & Constraints

Foreign Key Violation Adding Constraint With Orphans

A schema migration or ALTER TABLE ... ADD CONSTRAINT ... FOREIGN KEY statement fails with SQLSTATE 23503 and the message "violates foreign…

5 steps ~15 min Diagnose → Fix → Verify
Schema & Constraints

Relation Does Not Exist Search Path

An unqualified statement such as SELECT ... FROM orders raises 42P01 relation "orders" does not exist, while the exact same statement works…

5 steps ~10 min Diagnose → Fix → Verify
Schema & Constraints

Check Constraint Add Violated By Some Row

A CREATE/ALTER migration or a hand-run ALTER TABLE ... ADD CONSTRAINT ... CHECK (...) aborts with SQLSTATE 23514 and the message 'check…

5 steps ~15 min Diagnose → Fix → Verify
Schema & Constraints

Duplicate Key Creating Unique Index With Duplicate Rows

CREATE UNIQUE INDEX, ALTER TABLE ... ADD CONSTRAINT ... UNIQUE, or ALTER TABLE ... ADD PRIMARY KEY fails with SQLSTATE 23505 and…

5 steps ~15 min Diagnose → Fix → Verify
Schema & Constraints

Column Does Not Exist Quoted Identifier Case

A query that looks obviously correct returns 'column "" does not exist', where the name in the message is the lowercased form…

5 steps ~10 min Diagnose → Fix → Verify
Schema & Constraints

Exclusion Constraint Conflicts With Existing Rows

Two related failures, both SQLSTATE 23P01. At schema-change time, ALTER TABLE ... ADD CONSTRAINT ... EXCLUDE ... fails with 'could not create…

5 steps ~20 min Diagnose → Fix → Verify
Sev-1 Pro

Read any recipe free. Unlock the executed proof with Pro.

Every recipe gives you the diagnose-fix-verify arc for free. Pro adds the executed verification, catalog audits, and the cloud-provider notes for RDS, Azure & Cloud SQL.

  • The full verification step for every recipe — executed, not described.
  • Catalog & log queries that surface every at-risk object up front.
  • Cross-version gotchas across PostgreSQL 14–18.
  • Exactly where each symptom surfaces on managed Postgres.
$24.99/mo
or $199/yr — two months free
Unlock Pro
Cancel anytime · 14-day refund