Skip to content

Rate this page
Thanks for your feedback
Thank you! The feedback has been submitted.

Get free database assistance or contact our experts for personalized support.

Overview of pg_tde CLI tools

The pg_tde extension provides a set of command-line utilities designed specifically for operating on encrypted data and clusters. These utilities exist in parallel with the standard PostgreSQL utilities but you must use them when working with data encrypted by pg_tde.

Note

The standard PostgreSQL tools cannot operate on pg_tde-encrypted WAL or tables.

New pg_tde specific tools

These tools are introduced exclusively by pg_tde to support key rotation and WAL encryption workflows:

Tools for working with pg_tde-encrypted data

These tools are modified versions of standard PostgreSQL utilities that include pg_tde support. You must use the pg_tde_* variants when working with encrypted WAL or tables:

  • pg_tde_checksums: verify data checksums (non-encrypted files only)
  • pg_tde_waldump: inspect and decrypt WAL files
  • pg_tde_basebackup: create base backups that include encrypted data
  • pg_tde_resetwal: reset the WAL for clusters using pg_tde
  • pg_tde_rewind: rewind clusters that use encrypted WAL