- Newest
- Most votes
- Most comments
Thank you for your question about upgrading your PostgreSQL RDS instances to a newer major engine version. I'd be happy to provide some guidance on this process.
First, it's important to understand that major version upgrades for PostgreSQL databases in Amazon RDS are not automatic and cannot be scheduled for a maintenance window. This is because major version upgrades can contain database changes that are not backward-compatible with existing applications. As a result, you must manually perform major version upgrades of your databases.
The "New Operating System update" and "system-update" you see under "Maintenance and Backups" are not related to the database engine upgrade. These refer to operating system updates managed by Amazon RDS, which are separate from database engine upgrades.
To upgrade your PostgreSQL RDS instances to a newer major version, you need to follow these steps:
- Prepare for the upgrade:
- Ensure you have a version-compatible parameter group ready.
- Check that your database's instance class is compatible with the target PostgreSQL version.
- Perform necessary checks for unsupported usage, invalid databases, and required extension upgrades.
- Take a backup of your database.
- Initiate the upgrade:
- Go to the Amazon RDS console.
- Select the DB instance you want to upgrade.
- Choose "Modify" from the Actions menu.
- In the "DB engine version" section, select the target major version you want to upgrade to.
- Choose when to apply the modifications (immediately or during the next maintenance window).
- Review and confirm the changes.
- Monitor the upgrade process:
- The upgrade process will take some time, during which your database will be unavailable.
- After the upgrade, verify that your applications are working correctly with the new version.
It's highly recommended to test the upgrade process on a copy of your production database before performing it on your actual production instance. This allows you to identify any potential issues and estimate the downtime required for the upgrade.
Regarding your plan to convert to Reserved Instances, it's a good idea to complete the major version upgrade before making that change. This ensures that your Reserved Instances will be based on the updated configuration.
Remember, after the major version upgrade, you'll need to manually upgrade most PostgreSQL extensions using the ALTER EXTENSION UPDATE command.
Lastly, keep in mind that once you upgrade to a new major version, you cannot revert to the previous version. If you need to go back, you would have to restore from a pre-upgrade snapshot.
I hope this information helps you plan and execute your PostgreSQL major version upgrade. Let me know if you have any further questions!
Sources
Upgrades of the RDS for PostgreSQL DB engine - Amazon Relational Database Service
How to perform a major version upgrade for RDS for PostgreSQL - Amazon Relational Database Service
Upgrading PostgreSQL extensions in RDS for PostgreSQL databases - Amazon Relational Database Service
