Skip to content

PG TDE

Encrypt selected tables with pg_tde 2.3 and plan for recovery with the original keys.

Use PG TDE when a copy of a selected PostgreSQL relation on disk must be unreadable without its principal key. PostgreSQL decrypts pages as it reads them, so authorized SQL users continue to see the data. Plan for two separate assets from the outset: a physical backup and access to all keys required to read it.

  1. Enable the extension and verify a table in a new database.
  2. Choose a key provider and decide whether to encrypt WAL. WAL encryption covers the whole cluster.
  3. Restore a backup into a separate instance before relying on it.

For SQL Server clients, configure the key in the physical PG database and create and use the tables in the TDS logical database. Create encrypted tables over TDS · T-SQL temporary objects and plaintext on disk

Mimus pairs Percona’s pg_tde 2.3 with its PG19 kernel and tools. Installing the extension in a database registers a cluster-wide recovery requirement. The 100 / 101 patch pair describes what the kernel checks. Percona documentation

Percona pg_tde 2.3.0 manual

The full upstream manual covers what is encrypted, key providers, SQL functions, settings and command-line tools. The upstream release is 2.3.0. Mimus uses SQL extension version 2.3 plus the paired source changes. For an existing Mimus data directory, follow the Mimus recovery and migration procedure.