Planet PostgreSQL·· 3d ago
Umair Shahid: How a 40 TB PostgreSQL Cutover Took One Night
Umair Shahid: How a 40 TB PostgreSQL Cutover Took One Night
Brief · Based on the source excerpt
Umair Shahid recounts a regulated payments company's cutover of more than 40 TB of production data to a new EDB Postgres cluster, starting at 2 AM and back online by morning with all post-cutover validation checks confirmed in writing.
Why It Matters
For large migrations, size the timeline from the largest tables rather than total volume, and use replication against a live source to compress downtime into a single overnight cutover window.
Technical Breakdown · Distilled from the original source
The cutover date is set by the biggest tables
- Two giants dominated the database: one table at 8.6 TB and another at 4.5 TB; the bulk of the database could sync in days, but those two took weeks and the cutover could not happen until they were fully caught up.
- Environment-specific nuances ruled out dump/restore, so the date moved four times in total, each move caused by something new learned in a rehearsal; the team was unwilling to cut over on a guess.
- Advice: size the timeline from the largest table, not the total — a 40 TB database of a thousand 40 GB tables is a very different project from one where two tables hold a third of the data; find the giants on day one.
Why waiting was cheap
- Data moved through replication while the old system kept serving production, so the client's business carried on with no noticeable impact and each extra week of waiting cost no downtime.
- The cutover started at 2 AM local time; by morning the application was back online and the client confirmed in writing that every post-cutover validation check had passed.
- The post follows a September piece on deliberately pushing the go-live date back, and covers what changed once the data got big, what actually set the timeline, and the week after cutover.
Source: Planet PostgreSQL· postgr.es
PG Radar summarizes verified changes and impact. Read the original post for full technical details and code samples.