RDS PostgreSQL offers four major version upgrade solutions with different downtime and rollback trade-offs, helping you move from end-of-life versions to newer versions with improved performance, security, and features.
Solution overview
Lower PostgreSQL versions gradually lose community support, posing performance and security risks. RDS PostgreSQL provides multiple upgrade solutions to help you benefit from new versions while minimizing risk.
A major version upgrade preserves the original instance settings, including whitelists, parameters, and extensions (except those unsupported by the new version). Encrypted instances remain encrypted with the same key after upgrade.
|
Upgrade solution |
In-place upgrade |
Blue-green deployment |
Zero downtime |
||
|
Cutover |
No cutover |
||||
|
Scenarios |
You want the upgraded instance identical to the original and can accept read-only downtime during upgrade. |
You want to retain the original instance and can accept read-only downtime during upgrade. |
|
Your business cannot tolerate long downtime. |
|
|
How it works |
Uses pg_upgrade to upgrade the original instance to the target version. All metadata is preserved. |
Creates a new instance from a backup, upgrades it with pg_upgrade, and automatically switches the original connection address to the new instance. |
Creates a new instance from a backup and upgrades it with pg_upgrade. |
Uses pg_upgrade to upgrade the original instance. Incremental updates are synchronized through native logical replication. |
Manually creates a new RDS PostgreSQL instance and uses asynchronous logical replication for migration. |
|
Advantages |
Preserves original instance configuration and billing. |
|
Independent verification environment without affecting the original instance. |
|
|
|
Disadvantages |
No rollback to the original instance. |
Does not inherit the original instance billing. |
None. |
|
|
|
Read-only time for original instance |
Usually minutes. |
Usually minutes. |
None. |
Usually seconds. |
Usually seconds. |
|
Cost |
No upgrade cost. |
New instance is pay-as-you-go. |
New instance is pay-as-you-go. |
No upgrade cost. |
|
For in-place upgrade, if the instance does not meet recommended specifications, the system automatically upgrades its specifications. This causes a minutes-level read-only state and a brief disconnection of approximately one second. Resolve specification alerts in the major version upgrade check report before upgrading.
Major version upgrade
Method 1: In-place upgrade
Method 2: Blue-green deployment
Method 3: Zero downtime upgrade
Method 4: Upgrade through DTS data migration
Use DTS data migration if other upgrade methods are unavailable, or if you need data validation during the upgrade.