Zero-Downtime Schema Migrations in Postgres with pg_repack
Know which Postgres changes pg_repack fixes and which still lock.
Priya Sundaram
Section
8 stories in Database Administration.
Know which Postgres changes pg_repack fixes and which still lock.
Turn on the log, set a realistic threshold, and fix the worst queries.
Index only the rows you query, and shrink 400 MB to 20 MB.
PgBouncer suits most teams, and Pgpool-II only fits specific needs.
Getting the buffer pool size right fixes most MySQL latency problems fast.
Aggressive autovacuum tuning prevents bloat on high-write tables.
Mastering five design patterns keeps Postgres row-level security from leaking in production.
Find the sessions pinning your database, and stop them safely.