Table of contents
Research context
A migration that finishes quickly on staging may meet different data, hardware, cache, and write conditions in production. Rehearsal is useful evidence, not a guarantee.
PostgreSQL documents locking, progress views, and EXPLAIN. These sources identify observations, but provide no universal scaling formula for migrations.
Practical application
Methodology: restore an authorized sanitized dataset with recorded size and shape into isolation. Capture database version, resource limits, table and index sizes, row counts, locks, synthetic workload, progress, elapsed time, and rollback. Rehearse each revision twice.
Scope and inference boundaries: rehearsal can expose locks, sequencing errors, and duration under tested conditions. It cannot prove production duration, rule out rare data, or define an acceptable maintenance window. Projections remain estimates.
Operating controls
Limitations: sanitization changes distributions, caches warm between runs, and replicas or extensions may differ. Background load is hard to reproduce. Database owners approve backups, timing, abort criteria, and execution.
Sources
Frequently asked questions
What should happen first?
Begin with a bounded ticket, approved access, explicit acceptance evidence, and a named reviewer.
Who approves production changes?
The client's technical owner keeps final merge and release authority.
