Skip to content

This is the multi-page printable view of this section.

Return to the regular view of this page

Guides

Short, practical guides for designing and operating pg_tde deployments.

This is the Percona pg_tde 2.3.0 manual. For the paired build, backup tools and major upgrades, see PG TDE on Mimus.

Short, practical guides for designing and operating pg_tde deployments.

PG.CENTER edition · Upstream source

1 - A production checklist for pg_tde

The small set of installation, key custody, WAL, backup, and recovery checks to complete before enabling TDE in production.

This is the Percona pg_tde 2.3.0 manual. For the paired build, backup tools and major upgrades, see PG TDE on Mimus.

An editorial reading note by PGSTY, based on the upstream documentation.

Before enabling encryption, make the key provider and recovery path as concrete as the database configuration.

Checklist

  • Confirm the Percona PostgreSQL and pg_tde versions are compatible.
  • Load pg_tde through shared_preload_libraries and create the extension in every database that needs it.
  • Use an external KMS or KMIP-compatible provider for production; keep keyring files for development and testing.
  • Create and verify a principal key before creating encrypted tables.
  • Test tde_heap on a new table and on a disposable copy of an existing table.
  • If WAL encryption is enabled, use the pg_tde-aware archive and restore tools.
  • Back up the provider configuration and document how the server obtains historical keys.
  • Test restore, replica creation, major upgrade, and provider outage procedures.
  • Record which objects are outside the encryption scope, including temporary files and statistics.

PG.CENTER edition · Upstream source

2 - How pg_tde keeps data encrypted through PostgreSQL storage

A practical tour of tde_heap, the Storage Manager path, internal keys, principal keys, and WAL encryption.

This is the Percona pg_tde 2.3.0 manual. For the paired build, backup tools and major upgrades, see PG TDE on Mimus.

An editorial reading note by PGSTY, based on the upstream documentation.

Encryption only helps when it follows the real storage path. pg_tde marks the tables that need encryption with tde_heap, then uses PostgreSQL’s Storage Manager to encrypt pages before they reach disk and decrypt them before they enter the buffer cache.

The two-key hierarchy

Each encrypted data file has an internal key. The principal key protects the internal keys and lives in a key provider. This separation lets pg_tde rotate protection without rewriting every data page immediately.

Where WAL fits

WAL encryption is cluster-wide. The WAL pages use internal keys, and those keys are protected by the server principal key. A WAL reader uses key metadata to decide which records need decryption.

Operator consequence

A table can be readable while its key provider is available and unreadable when the provider or credentials are missing. The key management guide and recovery limits belong in the same runbook as the database configuration.

PG.CENTER edition · Upstream source