PostgreSQL · Operational reference
Toolkit
Operational artefacts for PostgreSQL: checklists for cadences, runbooks for incidents, hands-on labs for skills, and break/fix scenarios for troubleshooting reflexes. None of this replaces reading the corresponding lessons — these are the artefacts you keep open in a second tab during real work.
- Runbooks
- 26
- Checklists
- 15
- Labs
- 26
- Break/Fix
- 30
- Assessments
- 2
Operational checklists
Repetitive tasks performed on a schedule.
Before deployment
Quarterly
Runbooks
Step-by-step procedures. Treat the rollback as part of the procedure — never skip it.
Critical risk
- criticaldata loss riskRunbook: Restore a Cluster From a Physical Backup~60 min · 12 steps · verified 2026-08-28→
- criticaldata loss riskRunbook: Perform a Point-in-Time Recovery~75 min · 14 steps · verified 2026-08-28→
- criticaldata loss riskRunbook: Fail Over After Losing the Primary~45 min · 12 steps · verified 2026-08-28→
- criticaldata loss riskRunbook: Rejoin a Former Primary With pg_rewind~60 min · 12 steps · verified 2026-08-28→
- criticalcluster affectingRunbook: Add or Remove a Synchronous Standby~45 min · 12 steps · verified 2026-08-28→
- criticaldata loss riskRunbook: Reclaim Space on a Data Volume Approaching Full~40 min · 11 steps · verified 2026-08-28→
- criticaldata loss riskRunbook: Perform a Major Version Upgrade With pg_upgrade~90 min · 13 steps · verified 2026-08-28→
- criticaldata loss riskRunbook: Decommission a PostgreSQL Cluster~60 min · 12 steps · verified 2026-08-28→
High risk
- highservice affectingRunbook: Change a pg_hba.conf Rule Without Locking Anybody Out~35 min · 12 steps · verified 2026-08-28→
- highservice affectingRunbook: Enable or Renew TLS on a PostgreSQL Cluster~45 min · 12 steps · verified 2026-08-28→
- highcluster affectingRunbook: Perform a Planned Switchover~60 min · 13 steps · verified 2026-08-28→
- highservice affectingRunbook: Diagnose and Clear a Lock Queue~30 min · 11 steps · verified 2026-08-28→
- highservice affectingRunbook: Respond to Connection Exhaustion~30 min · 12 steps · verified 2026-08-28→
- highservice affectingRunbook: Put a Connection Pooler in Front of a Cluster~75 min · 12 steps · verified 2026-08-28→
- highcluster affectingRunbook: Deploy and Hand Over a Production Cluster~120 min · 13 steps · verified 2026-08-28→
Medium risk
- mediumservice affectingRunbook: Change a Configuration Parameter Safely~30 min · 12 steps · verified 2026-08-28→
- mediumsecurity relevantRunbook: Create a Role and Grant Least Privilege~35 min · 13 steps · verified 2026-08-28→
- mediumservice affectingRunbook: Rotate a Database Credential Without an Outage~40 min · 13 steps · verified 2026-08-28→
- mediumservice affectingRunbook: Take a Logical Backup and Prove It Restores~45 min · 13 steps · verified 2026-08-28→
- mediumservice affectingRunbook: Take a Physical Base Backup~40 min · 11 steps · verified 2026-08-28→
- mediumservice affectingRunbook: Build a Streaming Replica~60 min · 14 steps · verified 2026-08-28→
- mediumservice affectingRunbook: Vacuum a Large Table in a Maintenance Window~60 min · 12 steps · verified 2026-08-28→
- mediumservice affectingRunbook: Rebuild a Bloated Index Without Blocking~45 min · 12 steps · verified 2026-08-28→
- mediumservice affectingRunbook: Perform a Minor Version Upgrade~45 min · 12 steps · verified 2026-08-28→
Hands-on labs
Time-boxed exercises.
C · Simulation
- Lab 1: Install PostgreSQL 18 from PGDG and inspect what the packaging built~50 min · 5 objectives→
- Lab 2: Explore the process model, shared memory and parameter contexts~45 min · 4 objectives→
- Lab 3: Trace a parameter through every configuration source, then break a restart~55 min · 5 objectives→
- Lab 4: Build a pg_hba.conf and prove which rule matched~55 min · 6 objectives→
- Lab 5: Configure TLS and prove what each sslmode actually checks~60 min · 6 objectives→
- Lab 6: Read pg_stat_activity properly, then cancel and terminate on purpose~50 min · 6 objectives→
- Lab 7: Build a lock queue and find the session at the root of it~55 min · 6 objectives→
- Lab 8: Reproduce a deadlock, read the report, and make it stop happening~45 min · 6 objectives→
- Lab 9: Watch row versions accumulate on a real heap page~55 min · 6 objectives→
- Lab 10: Work out exactly when autovacuum will run, and how fast~60 min · 6 objectives→
- Lab 11: Grow a table to six times its size, then measure exactly how much is waste~55 min · 6 objectives→
- Lab 12: Read a query plan the way the executor produced it~55 min · 6 objectives→
- Lab 13: Find out why the planner is wrong, and correct it~55 min · 6 objectives→
- Lab 14: Make a query spill to disk, then find out whether that actually mattered~55 min · 6 objectives→
- Lab 15: Measure exactly how much WAL each statement writes~50 min · 6 objectives→
- Lab 16: Cause a checkpoint storm, then stop it with one setting~45 min · 6 objectives→
- Lab 17: Take a logical backup, restore it somewhere else, and find what it left behind~50 min · 6 objectives→
- Lab 18: Take a physical backup, damage it, and prove the damage is detectable~55 min · 6 objectives→
- Lab 19: Configure WAL archiving, break it, and watch pg_wal grow past its limit~55 min · 6 objectives→
- Lab 20: Drop a table, then recover the database to the second before you dropped it~60 min · 6 objectives→
- Lab 21: Add a streaming standby to a running primary~55 min · 6 objectives→
- Lab 22: Measure replication lag four ways, and stop paging on the wrong one~45 min · 6 objectives→
- Lab 23: Abandon a replication slot and watch it hold WAL until the server stops it~45 min · 6 objectives→
- Lab 24: Promote a replica, create a split brain, then rejoin the old primary and lose its writes~65 min · 6 objectives→
- Lab 25: Put a pool in front of PostgreSQL and measure what it costs you~55 min · 6 objectives→
- Lab 26: Rehearse a 17 to 18 upgrade, and find the obstacle before the maintenance window does~60 min · 6 objectives→
Break/Fix scenarios
Troubleshooting drills. Each scenario gives symptoms and evidence, then hides the solution behind a reveal.
pg-idle-in-transaction
pg-replication-slot
pg-statistics
pg-replica-down
pg-connection-storm
pg-long-transaction
pg-replication-lag
pg-sync-replication
Assessments
Production-readiness examinations. Each combines auto-scored questions with scenario-based rubrics you can use to grade yourself.