Upgrading a TDE-enabled database

You can use pg_upgrade with additional TDE arguments to perform upgrading and migrating operations.

This table provides an overview of supported use cases.

Use caseSource database serverTarget database server
Perform a minor upgrade and add encryptionUnencrypted EDB Postgres Extended Server (a given major version, earlier minor version)Encrypted EDB Postgres Extended Server (same major version, later minor version)
Change the Postgres distribution and add encryptionUnencrypted PostgreSQL (a given major version)Encrypted EDB Postgres Advanced Server (same major version)
Maintain the Postgres distribution and add encryptionUnencrypted EDB Postgres Advanced Server (a given major version)Encrypted EDB Postgres Advanced Server (same major version)
Maintain the Postgres distribution and rotate encryption keysEncrypted EDB Postgres Advanced Server (a given major version)Encrypted EDB Postgres Advanced Server (same major version) with new encryption keys
Important

Both source and target servers must be in the same Postgres major version. pg_upgrade only supports upgrades between minor versions on TDE-enabled databases.

Tutorials

See Tutorials for a list of step-by-step tutorials that highlight different migration scenarios.


Could this page be better? Report a problem or suggest an addition!