Decision#d1
Catalogue / retool-2021-postgres-upgrade
Retool moved its single 4 TB Postgres database from version 9.6 to 13 by logical replication, aiming for a maintenance window of about one hour
Retool, 2021. Main application database of the cloud-hosted product.
Records
Decision#d2
Jump straight to Postgres 13, the newest release, to put off the next major upgrade as long as possible
Failure#f1
A stalled migration-service run held transactions open on the primary, blocked autovacuum and caused an outage
Decision#d3
Leave two very large tables out of replication and copy them with a script, one after cutover
Decision#d4
Leave foreign key constraints unenforced on a few large tables to fit the maintenance window
Sign in to read what was chosen, what was rejected and what it cost, each with its place in the source. An account is free. The job-queue cards are open without one.