Enable TDE and encrypt a table
Prepare a new database
Use a matching Mimus 19.0.1 installation containing the pg_tde library, extension SQL and control file. On a new test cluster add pg_tde to shared_preload_libraries in postgresql.conf, retaining other required libraries. Restart with the matching server. Connect with psql as an administrator to the database in which you will create the table.
For this exercise, create a directory outside PGDATA named /var/lib/mimus-keys on the server, owned by the database service account with mode 0700. Use a fresh file name. The server will manage the keyring. File providers are suitable for local exercises; anyone who takes the backup and the readable keyring can recover the data.
Create and verify
Expect row (1,100), two true values, and tde in the feature list. To convert an existing heap table use ALTER TABLE ... SET ACCESS METHOD tde_heap after configuring its database key. This rewrites storage. Allow for the table lock, disk space and backup window.
Which objects are protected?
The encrypted table’s data, indexes and out-of-line TOAST values are covered. For a partitioned table, check each physical partition that stores rows. Native PG CREATE TEMP TABLE can use tde_heap. Babelfish table variables, # tables and temporary SELECT INTO use heap with enforcement off for the runtime login. T-SQL temporary objects and plaintext on disk
System catalogs, statistics, object names and query spill files remain readable. A normal heap table stays plaintext. Logical exports return readable data, so protect their storage and transport separately. Enable WAL encryption separately if WAL must also be protected. Key and WAL configuration
To reorganize an encrypted table on Mimus, use native PostgreSQL 19 REPACK and verify the resulting table, index and TOAST storage. The external pg_repack extension is unsupported. Storage compatibility