Bringing PostgreSQL towards zero downtime migration with Python
summary
Claims a practical path to near zero downtime schema changes by using PostgreSQL 9.4’s logical replication plus a JSON output plugin and Python to transform and replay changes. Workflow: switch a replica to logical replication, pause and apply the schema change on that node, run a wal2json feed into a Python pg_migrator pipeline using psycopg to transform rows and replay missing writes, then do a brief cutover — aiming for only a few seconds of downtime.
AI-written summary · about
chapters (8)
- 0:00Start
- 0:22INTRO
- 0:57MIGRATION NEEDED
- 2:23POSTGRESQL 9.4 IS HOT
- 4:20OUR TOOLBOX
- 5:35WORKFLOW
- 7:37NEW PYTHON BACKEND
- 18:46FUTURE
related talks
01h 41mPostgreSQL Upgrades with Logical Replication & Minimal Downtime
38mPostgreSQL pgroll: Zero-Downtime, Reversible Migrations
01h 01mAlways Online or Bust
35mScaling UPI for the Future: Zero Downtime Migration to
49mBeyond PostgreSQL 17
48mMigrating to PostgreSQL: Strategies, Sovereignty, and Success
37mDatabase Schema Migrations with Zero Downtime
43mPostgres schema migrations using the expand/contract pattern
