Upgrading#
While PGD and Postgres are closely related, they’re separate products with separate upgrade paths. This section covers how to upgrade both PGD and Postgres.
Upgrading PGD#
EDB Postgres Distributed is a flexible platform. This means that your upgrade path depends largely on how you installed PGD.
** Upgrading with TPA ** — If you installed using TPA, you can use its automated upgrade feature to upgrade to the latest minor versions.
** Upgrading manually ** — If you manually installed and configured your PGD cluster, you can move a cluster between versions, both minor and major.
** Supported PGD upgrade paths ** — Several supported upgrade paths are available.
** Compatibility changes ** — If you’re upgrading from PGD 3.x or 4.x to PGD 5.x or later, you need to understand the compatibility changes between versions.
Upgrading Postgres#
** In-place Postgres upgrades ** — How to use
bdr_pg_upgradeto manually upgrade the Postgres version on a node, or nodes.** Rolling major version upgrades ** — How to perform a major version upgrade of Postgres on a cluster deployed using TPA.
Other upgrades#
** Application schema upgrades ** — A guide for safely upgrading your application’s schema when running multiple distributed servers with PGD.
- Upgrading PGD clusters with TPA
- Upgrading PGD clusters manually
- Supported PGD upgrade paths
- Compatibility changes
- In-place Postgres major version upgrades
- Application schema upgrades
- Performing a Postgres major version rolling upgrade on a PGD cluster built with TPA
- Upgrading Postgres major versions
- Worked example
- Confirm the current Postgres version
- Verify that the target node isn’t the write leader
- Perform a planned switchover
- Stop Postgres on the target node
- Install PGD and utilities
- Initialize the new Postgres instance
- Migrate configuration to the new Postgres version
- Verify the Postgres service is inactive
- Swap PGDATA directories for version upgrade
- Verify upgrade feasibility
- Execute the Postgres major version upgrade
- Update the Postgres service configuration
- Restart Postgres
- Validate the new Postgres version
- Clean up post-upgrade
- Next steps
- Check Postgres versions across the cluster
- Reconcile with TPA