Series · 4 parts
Postgres Under Load
Connection budgets, worker queues and the operational realities of a busy PostgreSQL service.
- 1When Database Connection Pools Become the Bottleneck
How to distinguish pool wait from query time, size connections with Little’s law, and evaluate PgBouncer's trade-offs.
2 minAdvanced
- 2Postgres as a Job Queue with SKIP LOCKED
An honest PostgreSQL job queue design: atomic claims, leases, fencing, retries, dead letters, and the limits of SKIP LOCKED.
2 minAdvanced
- 3PostgreSQL Index Design from Real Query Plans
Design composite and partial indexes for a real query shape, read EXPLAIN ANALYZE, and avoid expensive write-side regressions.
2 minIntermediate
- 4Zero-Downtime Database Migrations with Expand–Migrate–Contract
Ship schema changes safely across rolling deployments, batch backfills, concurrent indexes and delayed destructive cleanup.
1 minAdvanced