Encrypt your first table with PG TDE
Configure preloading and a local keyring
On an instance with pg_tde installed under /usr/mimus-19, add pg_tde to shared_preload_libraries, restart PostgreSQL, and register a local keyring file for your lab database:
Now enable the extension and bind a principal key in postgres:
File providers are intended for local testing and development. Production deployments should store principal keys in HashiCorp Vault or a KMIP server; see Keys and WAL encryption.
Create and verify an encrypted table
Create a table with USING tde_heap plus an index and out-of-line text, then confirm encryption status:
pg_tde_is_encrypted returns t. Primary heap pages, the primary-key B-tree index, and the TOAST table are all encrypted on disk while remaining transparent to SQL, MySQL (pg_mysql), and TDS (Babelfish) queries.
Check the cluster startup guard
Inspect the cluster’s recorded feature lock:
Once tde is recorded in mimus_required_features, Mimus refuses to start or replay WAL against this data directory if pg_tde is omitted from shared_preload_libraries, preventing accidental startup without storage decryption hooks. For backup and offline page verification, continue to the PG TDE manual.
