The Postgres Health Check I Run Before Blaming the App
Before the application team and the database team start arguing, run this 90-second sweep. Half the time it ends the discussion.
Notes for the problems that show up after launch: bad plans, awkward migrations, index debt, vacuum pressure, replica lag, and the small decisions that make PostgreSQL easier to operate.
Before the application team and the database team start arguing, run this 90-second sweep. Half the time it ends the discussion.
auto_explain is the extension that captures slow query plans automatically. Without it, slow-query investigations are mostly guessing.
pgbench measures Postgres throughput under a synthetic workload. It tells you something useful, but only if you understand what its numbers mean.
Most production schema bugs are caused by migrations that looked fine in review. Here is the checklist that catches the dangerous ones before they merge.
JSONB columns are great. JSONB indexing has a steeper learning curve than the docs admit. Here is what works in production.