Zero-Downtime Multi-TB Postgres Schema Change
Product family: Expand-and-Contract DB Flow.
Flow: Backend Feature Teams → Backward-Compat DDL Lint → Mask Clone Prod Replay Test → DBA Lock Timeout Dry-Run → Online Index Dual-Write Run → Old Column Clean Cleanup → Live SaaS Cluster
No account needed. Change any value and the indicators update.
Value stream map
Process steps
| Step | Cycle time | Changeover | Uptime | Yield | Batch | Stock before | Capacity per day |
|---|---|---|---|---|---|---|---|
| 1. Backward-Compat DDL Lint | 837 s | 15 min | 96% | 91.0% | 10 | 44 (2.20 d) | 26 |
| 2. Mask Clone Prod Replay Test | 1,134 s | 12 min | 92% | 88.5% | 8 | 36 (1.80 d) | 18 |
| 3. DBA Lock Timeout Dry-Run | 756 s | 5 min | 95% | 93.0% | 4 | 28 (1.40 d) | 30 |
| 4. Online Index Dual-Write Run | 1,445 s | 35 min | 88% | 86.0% | 20 | 48 (2.40 d) | 13 |
| 5. Old Column Clean Cleanup | 567 s | 8 min | 98% | 97.5% | 2 | 14 (0.70 d) | 37 |
Key figures
- Takt time
- 1,350 s
- Lead time
- 9.48 d
- Value-added time
- 4,739 s
- Process cycle efficiency (PCE)
- 1.9%
- Rolled throughput yield (RTY)
- 62.8%
- Customer demand per day
- 20 tickets
- Line capacity per day
- 13 tickets
- Bottleneck
- Online Index Dual-Write Run
Reading the bottleneck
The bottleneck is "Online Index Dual-Write Run": it can process 13 tickets per day against a demand of 20 tickets, so it falls short of demand by 34.8%. Once downtime and scrap are counted, its cycle time grows from 1,445 s to 1,909 s, against a takt of 1,350 s. The largest loss at this step is scrap and rework (first-pass yield 86.0%), about 267 s per unit. Reducing that loss is where the first improvement test belongs.
The figures on this page are illustrative starting values to be replaced with your own measurements. They are not industry benchmarks.
Other scenarios in this family
More scenarios of Software Delivery & CI/CD DevOps: Software Delivery & CI/CD DevOps
- SaaS Feature Delivery Pipeline
- iOS & Android Banking Mobile App Release Train
- Cloud-Native Kubernetes Microservices API
- ASPICE Embedded Automotive OTA Firmware Flow
- PCI-DSS Compliant Payment Core Hotfix Line
- Enterprise LLM / ML Model Training-to-Serving
- Lakehouse dbt & Cloud Warehouse Daily Data Pipeline
- Critical CVE Vulnerability Container Patch SLA
- Live-Service Multiplayer Game Weekly Event Drop
- Multi-Region Cloud Landing Zone Terraform IaC
- ERP Monthly Release & Transport Train