Upgrading between major releases is hard, and it should be deferred until you have some good reasons and sufficient time to get it right.
You can use replication tools to minimize the downtime required for an upgrade, so we refer to this recipe as an online upgrade.
The following general steps should be followed, allowing at least a month for the complete process to ensure that everything is tested and everybody understands the implications:
- Set up a new release of the software on a new test system.
- Take a standalone backup from the main system and copy it to the test system.
- Test the applications extensively against the new release on the test system.
When everything works and performs correctly, then do the following:
- Set up a connection pooler to the main database (it may be there already).
- Set up
pglogical
for all tables from the old to new database servers. Make sure that you wait until all the initial copy tasks have completed for all tables.
Retest the...