Treating every PostgreSQL upgrade as prohibitively risky is a mistake. pg_upgrade provides a refined, highly reliable path for major-version upgrades, with dry-run modes for sanity checking. section 7.6
Plan the upgrade around these operational checks:
- Check PostgreSQL version and platform compatibility, then verify that each extension version supports the target PostgreSQL release. section 7.6
- Run pg_upgrade's dry-run mode before the real migration to expose problems without committing to the upgrade. section 7.6
- Consider logical replication when near-zero downtime matters more than minimizing implementation effort. section 7.6
A safer major-upgrade plan
Before moving a production cluster to a new major PostgreSQL release, validate platform and extension compatibility, run pg_upgrade in dry-run mode, and use logical replication instead when downtime must approach zero. section 7.6
