Skip to content

1 - pg_tde 2.3.0 (2026-11-17)

PostgreSQL 19 support and updated WAL diagnostics in pg_tde 2.3.0.

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

Release date

The 2.3.0 tag was published on November 17, 2026. The upstream documentation date variable was still TBD at this pinned revision.

The pg_tde extension, provided by Percona, adds Transparent Data Encryption (TDE) to PostgreSQL and helps protect sensitive data at rest.

Get Started

Release Highlights

pg_tde 2.3.0 adds support for PostgreSQL 19 and makes pg_tde_waldump aware of the pg_tde custom resource manager. For more details, see the Changelog.

Known issues

  • The default mlock limit on Rocky Linux 8 for ARM64-based architectures equals the memory page size and is 64 Kb. This results in the child process with pg_tde failing to allocate another memory page because the max memory limit is reached by the parent process.

    To prevent this, you can change the mlock limit to be at least twice the memory page size:

    • temporarily for the current session using the ulimit -l <value> command.
    • set a new hard limit in the /etc/security/limits.conf file. To do so, you require the superuser privileges.

    Adjust the limits with caution since it affects other processes running in your system.

Changelog

Changes introduced in pg_tde 2.3.0:

New Features

Improvements

  • PG-2754 - pg_tde_waldump now recognises the pg_tde custom resource manager, prints proper data for its records and accepts it in the --rmgr filter

PG.CENTER edition · Upstream source

2 - pg_tde 2.2.2 (2026-08-20)

Changes, compatibility notes, and fixes for pg_tde 2.2.2 (2026-08-20).

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

The pg_tde extension, provided by Percona, adds Transparent Data Encryption (TDE) to PostgreSQL and helps protect sensitive data at rest.

Get Started

Release Highlights

pg_tde 2.2.2 focuses on fixing an issue with performance of WAL encryption and adding support for KMIP with HashiCorp Vault Enterprise. Vault Enterprise was already supported via the Vault V2 protocol, but now KMIP can be used too.

Warning

pg_tde 2.2.2 is not compatible with Percona Distribution for PostgreSQL older than 17.10.2 or 18.4.2.

Known issues

  • The default mlock limit on Rocky Linux 8 for ARM64-based architectures equals the memory page size and is 64 Kb. This results in the child process with pg_tde failing to allocate another memory page because the max memory limit is reached by the parent process.

    To prevent this, you can change the mlock limit to be at least twice the memory page size:

    • temporarily for the current session using the ulimit -l <value> command.
    • set a new hard limit in the /etc/security/limits.conf file. To do so, you require the superuser privileges.

    Adjust the limits with caution since it affects other processes running in your system.

Changelog

Changes introduced in pg_tde 2.2.2:

New Features

  • PG-2125 - Support using HashiCorp Vault Enterprise with KMIP
  • PG-2473 - Basic support for building on Windows with Microsoft Visual C++

Improvements

  • PG-2494 - Improved performance of WAL encryption

Bug Fixes

  • PG-2492 - Fixed crash when empty certificate parameters are passed to pg_tde_add_global_key_provider_kmip() or pg_tde_add_database_key_provider_kmip()
  • PG-2608 - Fixed a race condition in the Vault key provider that could occur when multiple processes accessed the same cURL handle after a fork.
  • PG-2609 - Fixed WAL archiving (pg_tde_archive_decrypt and pg_tde_restore_encrypt) when pg_wal dir is a symlink.
  • Include bugfixes for frontend tools from PostgreSQL 16.15, 17.11 and 18.5

PG.CENTER edition · Upstream source

3 - pg_tde 2.2.1 (2026-07-06)

Changes, compatibility notes, and fixes for pg_tde 2.2.1 (2026-07-06).

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

Historical release

This page describes this release at publication time. For current deployment requirements, read the supported versions and limitations.

The pg_tde extension, provided by Percona, adds Transparent Data Encryption (TDE) to PostgreSQL and helps protect sensitive data at rest.

Get Started

Release Highlights

pg_tde 2.2.1 focuses on stability and compatibility improvements. This release improves pg_rewind reliability. For more details, see the Changelog.

Warning

pg_tde 2.2.1 is not compatible with Percona Distribution for PostgreSQL older than 17.10.2 or 18.4.2.

Known issues

  • The default mlock limit on Rocky Linux 8 for ARM64-based architectures equals the memory page size and is 64 Kb. This results in the child process with pg_tde failing to allocate another memory page because the max memory limit is reached by the parent process.

    To prevent this, you can change the mlock limit to be at least twice the memory page size:

    • temporarily for the current session using the ulimit -l <value> command.
    • set a new hard limit in the /etc/security/limits.conf file. To do so, you require the superuser privileges.

    Adjust the limits with caution since it affects other processes running in your system.

Changelog

Changes introduced in pg_tde 2.2.1:

New Features

Bug Fixes

  • PG-2407 - Fixed multiple issues affecting pg_rewind for pg_tde clusters, improving reliability during rewind and recovery operations.
  • PG-2258 - Fixed “could not find server principal key” error from pg_tde_basebackup

Changes

  • Remove support for building pg_tde with make, now it can only be built with Meson

PG.CENTER edition · Upstream source

4 - pg_tde 2.2.0 (2026-05-20)

Changes, compatibility notes, and fixes for pg_tde 2.2.0 (2026-05-20).

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

Historical release

This page describes this release at publication time. For current deployment requirements, read the supported versions and limitations.

The pg_tde extension, provided by Percona, adds Transparent Data Encryption (TDE) to PostgreSQL and helps protect sensitive data at rest.

Get Started

Release Highlights

pg_tde now supports 256-bit AES encryption and introduces pg_tde_upgrade, a utility that simplifies the upgrades of encrypted clusters. For more details, see the Changelog.

Warning

pg_tde 2.2.0 is not compatible with Percona Distribution for PostgreSQL older than 17.10 or 18.4.

Documentation updates

  • The Limitations of pg_tde topic is updated to include a new section on known incompatibilities with Citus and TimescaleDB, and a clarification of the ALTER DATABASE ... SET TABLESPACE behavior, the command can be used but with restrictions when pg_tde is active.
  • The Backup with WAL encryption enabled topic is updated with a clearer description of the key rotation limitation during backups.

Known issues

  • pg_rewind and pg_tde_rewind

    Using pg_rewind or pg_tde_rewind between diverged nodes in clusters that use pg_tde may lead to corrupted tables or indexes due to internal encryption key differences between clusters.

    Queries may fail with:

    ERROR: invalid page in block 0 of relation "base/..."

    This behavior is a known issue.

    For more information, see pg_tde limitations.

  • The default mlock limit on Rocky Linux 8 for ARM64-based architectures equals the memory page size and is 64 Kb. This results in the child process with pg_tde failing to allocate another memory page because the max memory limit is reached by the parent process.

    To prevent this, you can change the mlock limit to be at least twice the memory page size:

    • temporarily for the current session using the ulimit -l <value> command.
    • set a new hard limit in the /etc/security/limits.conf file. To do so, you require the superuser privileges.

    Adjust the limits with caution since it affects other processes running in your system.

Changelog

Changes introduced in pg_tde 2.2.0:

New Features

  • PG-1968 - AES-256 encryption support, pg_tde now supports 256-bit AES encryption, providing stronger cryptographic protection for encrypted tablespaces.
  • PG-2017 - AES-256 compatibility for pg_tde_resetwal, the pg_tde_resetwal utility has been updated to work correctly with AES-256 encrypted data.
  • PG-2018 - AES-256 compatibility for pg_tde_basebackup, the pg_tde_basebackup utility now fully supports AES-256 encryption, ensuring consistent backup and restore behavior for databases using the new cipher.
  • PG-2240 - Introducing pg_tde_upgrade, a utility that automates the steps required to upgrade a pg_tde-enabled cluster, making the upgrade process more convenient.

Improvements

  • PG-2278 - Storage manager (SMGR) encryption has been optimized to reuse OpenSSL cipher contexts, reducing overhead and improving throughput for encrypted I/O operations.

Bug Fixes

  • PG-2240 - Fixed an issue where pg_upgrade would fail when run against databases containing encrypted data.
  • PG-1895 - Resolved a bug where performing WAL key rotation or SMGR key rotation during a pg_basebackup operation could prevent the secondary server from starting successfully.
  • PG-2125 - Fixed key creation failures that occurred when pg_tde was configured to use HashiCorp Vault via the KMIP protocol.

PG.CENTER edition · Upstream source

5 - pg_tde 2.1.2 (2026-03-02)

Changes, compatibility notes, and fixes for pg_tde 2.1.2 (2026-03-02).

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

Historical release

This page describes this release at publication time. For current deployment requirements, read the supported versions and limitations.

The pg_tde extension, provided by Percona, adds Transparent Data Encryption (TDE) to PostgreSQL and helps protect sensitive data at rest.

Get Started

Release Highlights

Documentation updates

  • The Architecture documentation is redesigned for improved clarity and readability. The chapter is now split into smaller, more focused sections.
  • The Technical reference overview is updated with quick-skim cards for quick topic access.
  • A dedicated Usage reference topic is introduced which describes the main pg_tde operations available.

Known issues

  • pg_rewind and pg_tde_rewind

    Using pg_rewind or pg_tde_rewind between diverged nodes in clusters that use pg_tde may lead to corrupted tables or indexes due to internal encryption key differences between clusters.

    Queries may fail with:

    ERROR: invalid page in block 0 of relation "base/..."

    This behavior is a known issue.

    For more information, see pg_tde limitations.

  • pg_upgrade is currently unsupported when pg_tde is enabled

    PostgreSQL clusters that use pg_tde cannot currently be upgraded using pg_upgrade.

  • Do not create, change, or rotate global key providers (or their keys) while pg_tde_basebackup is running. Doing so may cause standbys or clusters initialized from the backup to fail during WAL replay and may result in corruption of encrypted data (tables, indexes, and other relations).

  • Using pg_tde_basebackup with --wal-method=fetch produces warnings.

    This behavior is expected and will be addressed in a future release.

  • The default mlock limit on Rocky Linux 8 for ARM64-based architectures equals the memory page size and is 64 Kb. This results in the child process with pg_tde failing to allocate another memory page because the max memory limit is reached by the parent process.

    To prevent this, you can change the mlock limit to be at least twice bigger than the memory page size:

    • temporarily for the current session using the ulimit -l <value> command.
    • set a new hard limit in the /etc/security/limits.conf file. To do so, you require the superuser privileges.

    Adjust the limits with caution since it affects other processes running in your system.

Changelog

Improvements

  • PG-2088 , PG-2179 - Improved handling of Vault/OpenBao KV v2 mount point validation in pg_tde. The extension no longer fails when configured with tokens that lack access to mount metadata endpoints and now works correctly with tokens that have only the required KV v2 read/write permissions.

Bugs Fixed

  • Updated pg_tde CLI tools to include upstream bug fixes and stability improvements from PostgreSQL 18.2 and 17.8.

PG.CENTER edition · Upstream source

6 - pg_tde 2.1.1 (2026-01-22)

Changes, compatibility notes, and fixes for pg_tde 2.1.1 (2026-01-22).

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

Historical release

This page describes this release at publication time. For current deployment requirements, read the supported versions and limitations.

The pg_tde extension, provided by Percona, adds Transparent Data Encryption (TDE) to PostgreSQL and helps protect sensitive data at rest.

Get Started

Release Highlights

Integrated Hashicorp Vault namespace

The namespace of Hashicorp vault is integrated with pg_tde through the pg_tde_add_global_key_provider_vault_v2 parameter.

Documentation updates

Updated the Global Principal Key configuration and Configure WAL encryption chapters with updated installation steps and removed outdated KMS configuration information.

Known issues

  • Creating, changing, or rotating global key providers (or their keys) while pg_tde_basebackup is running may cause standbys or standalone clusters initialized from the backup to fail during WAL replay and may also lead to the corruption of encrypted data (tables, indexes, and other relations).

    Avoid making these actions during backup windows. Run a new full backup after completing a rotation or provider update.

  • Using pg_tde_basebackup with --wal-method=fetch produces warnings.

    This behavior is expected and will be addressed in a future release.

  • The default mlock limit on Rocky Linux 8 for ARM64-based architectures equals the memory page size and is 64 Kb. This results in the child process with pg_tde failing to allocate another memory page because the max memory limit is reached by the parent process.

    To prevent this, you can change the mlock limit to be at least twice bigger than the memory page size:

    • temporarily for the current session using the ulimit -l <value> command.
    • set a new hard limit in the /etc/security/limits.conf file. To do so, you require the superuser privileges.

    Adjust the limits with caution since it affects other processes running in your system.

Changelog

New Features

  • PG-1959 - Namespace of Hashicorp vault is integrated with pg_tde

PG.CENTER edition · Upstream source

7 - pg_tde 2.1.0 (2025-11-28)

Changes, compatibility notes, and fixes for pg_tde 2.1.0 (2025-11-28).

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

Historical release

This page describes this release at publication time. For current deployment requirements, read the supported versions and limitations.

The pg_tde by Percona extension brings Transparent Data Encryption (TDE) to PostgreSQL and enables you to keep sensitive data safe and secure.

Get Started

Release Highlights

Added support for PostgreSQL 18.1

pg_tde is fully supported with the Postgres 18.1 version.

Packaging changes for PostgreSQL 18

Starting with PostgreSQL 18, pg_tde is distributed as a standalone package for RPM and DEB installations.

It is no longer bundled with the main PostgreSQL server package.

If your PostgreSQL 18 deployment uses pg_tde, make sure to install the matching pg_tde package separately.

Percona’s PostgreSQL Docker images continue to include pg_tde by default, so no additional action is required for container-based deployments.

For more information on the availability by PostgreSQL version, please see Install pg_tde.

Added support for AIO

Added support for asynchronous I/O (AIO) which is now the default I/O mechanism.

Added namespace support for Vault Enterprise and OpenBao

Added support for HashiCorp Vault and OpenBao namespaces. The namespace parameter is now documented in Add or modify Vault providers and fully supported.

Repository split for multi-version PostgreSQL support

Reorganized the project into a multi-repository structure to support several PostgreSQL versions more efficiently.

Tooling changes

The standard PostgreSQL command-line utilities can no longer operate on clusters encrypted with pg_tde. To manage encrypted data safely, use the pg_tde_ equivalents provided by Percona:

  • pg_basebackup to pg_tde_basebackup
  • pg_checksums to pg_tde_checksums
  • pg_resetwal to pg_tde_resetwal
  • pg_rewind to pg_tde_rewind
  • pg_waldump to pg_tde_waldump
Warning

The non-pg_tde_* versions will not work on encrypted clusters and may fail with errors if used. Always use the pg_tde_ variants when working with TDE-enabled data.

Added Akeyless support

pg_tde is now compatible with the Akeyless CipherTrust Manager via the KMIP protocol. For more information, see the Key management overview topic.

Added support for Vault and OpenBao namespaces

Implemented support for the “namespace” feature in Vault Enterprise and OpenBao, available both on the CLI and on the HTTP interface using the X-Vault-Namespace header.

Documentation updates

Known issues

  • Creating, changing, or rotating global key providers (or their keys) while pg_tde_basebackup is running may cause standbys or standalone clusters initialized from the backup to fail during WAL replay and may also lead to the corruption of encrypted data (tables, indexes, and other relations).

    Avoid making these actions during backup windows. Run a new full backup after completing a rotation or provider update.

  • Using pg_tde_basebackup with --wal-method=fetch produces warnings.

    This behavior is expected and will be addressed in a future release.

  • The default mlock limit on Rocky Linux 8 for ARM64-based architectures equals the memory page size and is 64 Kb. This results in the child process with pg_tde failing to allocate another memory page because the max memory limit is reached by the parent process.

    To prevent this, you can change the mlock limit to be at least twice bigger than the memory page size:

    • temporarily for the current session using the ulimit -l <value> command.
    • set a new hard limit in the /etc/security/limits.conf file. To do so, you require the superuser privileges.

    Adjust the limits with caution since it affects other processes running in your system.

PG.CENTER edition · Upstream source

8 - pg_tde 2.0.0 (2025-09-01)

Changes, compatibility notes, and fixes for pg_tde 2.0.0 (2025-09-01).

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

Historical release

This page describes this release at publication time. For current deployment requirements, read the supported versions and limitations.

The pg_tde by Percona extension brings Transparent Data Encryption (TDE) to PostgreSQL and enables you to keep sensitive data safe and secure.

Get Started

Release Highlights

WAL encryption is now generally available

The WAL (Write-Ahead Logging) encryption feature is now fully supported and production-ready, it adds secure write-ahead logging to pg_tde, expanding Percona’s PostgreSQL encryption coverage by enabling secure, transparent encryption of write-ahead logs using the same key infrastructure as data encryption.

WAL encryption upgrade limitation

Clusters that used WAL encryption in the beta release (pg_tde 1.0 or older) cannot be upgraded to pg_tde 2.0. The following error indicates that WAL encryption was enabled:

FATAL: principal key not configured
HINT: Use pg_tde_set_server_key_using_global_key_provider() to configure one.

Clusters that did not use WAL encryption in beta can be upgraded normally.

Documentation updates

  • Updated the Limitations topic, it now includes WAL encryption limitations and both supported and unsupported WAL tools
  • PG-1858 - Added a new topic for Backup with WAL encryption enabled that includes restoring a backup created with WAL encryption
  • PG-1832 - Added documentation for using the pg_tde_archive_decrypt and pg_tde_restore_encrypt utilities. These tools are now covered in CLI Tools to guide users on how to archive and restore encrypted WAL segments securely
  • PG-1740 - Updated documentation for uninstalling pg_tde with WAL encryption enabled and improved the uninstall instructions to cover cases where TDE is disabled while WAL encryption remains active

Known issues

  • Creating, changing, or rotating global key providers (or their keys) while pg_basebackup is running may cause standbys or standalone clusters initialized from the backup to fail during WAL replay and may also lead to the corruption of encrypted data (tables, indexes, and other relations).

    Avoid making these actions during backup windows. Run a new full backup after completing a rotation or provider update.

  • Using pg_basebackup with --wal-method=fetch produces warnings.

    This behavior is expected and will be addressed in a future release.

  • The default mlock limit on Rocky Linux 8 for ARM64-based architectures equals the memory page size and is 64 Kb. This results in the child process with pg_tde failing to allocate another memory page because the max memory limit is reached by the parent process.

    To prevent this, you can change the mlock limit to be at least twice bigger than the memory page size:

    • temporarily for the current session using the ulimit -l <value> command.
    • set a new hard limit in the /etc/security/limits.conf file. To do so, you require the superuser privileges.

    Adjust the limits with caution since it affects other processes running in your system.

Changelog

New Features

  • PG-1497 WAL encryption is now generally available (GA)
  • PG-1037 - Added support for pg_rewind with encrypted WAL
  • PG-1411 - Added support for pg_resetwal with encrypted WAL
  • PG-1603 - Added support for pg_basebackup with encrypted WAL
  • PG-1710 - Added support for WAL archiving with encrypted WAL
  • PG-1711 - Added support for incremental backups with encrypted WAL, compatibility has been verified with pg_combinebackup and the WAL summarizer tool.
  • PG-1712 - Added support for pg_createsubscriber with encrypted WAL
  • PG-1833 - Added verified support for using pg_waldump with encrypted WAL
  • PG-1834 - Verified pg_upgrade with encryption

Improvements

  • PG-1661 - Added validation for key material received from providers
  • PG-1667 - Validated Vault keyring engine type

Bugs Fixed

  • PG-1391 - Fixed unencrypted checkpoint segment on replica with encrypted key
  • PG-1412 – Fixed an issue where XLogFileCopy failed with encrypted WAL during PITR and pg_rewind
  • PG-1452 - Fixed an issue where pg_tde_change_key_provider did not work without the -D flag even if PGDATA was set
  • PG-1485 - Fixed an issue where streaming replication failed with an invalid magic number in WAL when wal_encryption was enabled
  • PG-1604 - Fixed a crash during standby promotion caused by an invalid magic number when replaying two-phase transactions from WAL
  • PG-1658 - Fixed an issue where the global key provider could not be deleted after server restart
  • PG-1835 - Fixed an issue where pg_resetwal corrupted encrypted WAL, causing PostgreSQL to fail at startup with an invalid checkpoint
  • PG-1842 - Fixed a delay in replica startup with encrypted tables in streaming replication setups
  • PG-1843 - Fixed performance issues when creating encrypted tables
  • PG-1863 - Fixed an issue where unnecessary WAL was generated when creating temporary tables
  • PG-1866 - Fixed an issue where automatic restart after crash sometimes failed with WAL encryption enabled
  • PG-1867 - Fixed archive recovery with encrypted WAL

PG.CENTER edition · Upstream source

9 - pg_tde 1.0.0 (2025-06-30)

Changes, compatibility notes, and fixes for pg_tde 1.0.0 (2025-06-30).

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

Historical release

This page describes this release at publication time. For current deployment requirements, read the supported versions and limitations.

The pg_tde by Percona extension brings in Transparent Data Encryption (TDE) to PostgreSQL and enables you to keep sensitive data safe and secure.

Get Started

Release Highlights

  • pg_tde 1.0 is now GA (Generally Available)

And stable for encrypting relational data in PostgreSQL using Transparent Data Encryption (TDE) . This milestone brings production-level data protection to PostgreSQL workloads.

  • WAL encryption is still in Beta

The WAL encryption feature is currently still in beta and is not effective unless explicitly enabled. It is not yet production ready. Do not enable this feature in production environments.

Upgrade considerations

pg_tde 1.0 is not backward compatible with previous pg_tde versions, like Release Candidate 2, due to significant changes in code. This means you cannot directly upgrade from one version to another. You must do a clean installation of pg_tde.

Known issues

  • The default mlock limit on Rocky Linux 8 for ARM64-based architectures equals the memory page size and is 64 Kb. This results in the child process with pg_tde failing to allocate another memory page because the max memory limit is reached by the parent process.

To prevent this, you can change the mlock limit to be at least twice bigger than the memory page size:

  • temporarily for the current session using the ulimit -l <value> command.
  • set a new hard limit in the /etc/security/limits.conf file. To do so, you require the superuser privileges.

Adjust the limits with caution since it affects other processes running in your system.

Changelog

New Features

  • PG-1257 – Added SQL function to remove the current principal key

Improvements

  • PG-1617 – Removed relation key cache
  • PG-1635 – User-facing TDE functions now return void
  • PG-1605 – Removed undeclared dependencies for pg_tde_grant_database_key_management_to_role()

Bugs Fixed

  • PG-1581 – Fixed PostgreSQL crashes on table access when KMIP key is unavailable after restart
  • PG-1583 – Fixed a crash when dropping the pg_tde extension with CASCADE after changing the key provider file
  • PG-1585 – Fixed the vault provider re-addition that failed after server restart with a new token
  • PG-1592 – Improve error logs when Server Key Info is requested without being created
  • PG-1593 – Fixed runtime failures when invalid Vault tokens are allowed during key provider creation
  • PG-1600 – Fixed Postmaster error when dropping a table with an unavailable key provider
  • PG-1606 – Fixed missing superuser check in role grant function leads to misleading errors
  • PG-1607 – Improved CA parameter order and surrounding documentation for clearer interpretation
  • PG-1608 – Updated and fixed global key configuration parameters in documentation
  • PG-1613 – Tested and improved the pg_tde_change_key_provider CLI utility
  • PG-1637 – Fixed unused keys in key files which caused issues after OID wraparound
  • PG-1651 – Fixed the CLI tool when working with Vault key export/import
  • PG-1652 – Fixed when the server fails to find encryption keys after CLI-based provider change
  • PG-1662 – Fixed the creation of inconsistent encryption status when altering partitioned tables
  • PG-1663 – Fixed the indexes on partitioned tables which were not encrypted
  • PG-1700 – Fixed the error hint when the principal key is missing

PG.CENTER edition · Upstream source

10 - pg_tde Release Candidate 2 (2025-05-29)

Changes, compatibility notes, and fixes for pg_tde Release Candidate 2 (2025-05-29).

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

Historical release

This page describes this release at publication time. For current deployment requirements, read the supported versions and limitations.

pg_tde extension brings in Transparent Data Encryption (TDE) to PostgreSQL and enables you to keep sensitive data safe and secure.

Get Started

Release Highlights

This release provides the following features and improvements:

  • Restricted key provider configuration to superusers

    The database owners can no longer configure key providers directly. Instead, they must refer to the superuser who manages the provider setup. This security improvement clearly separates the responsibilities between users and administrators.

  • WAL encryption supports Vault.

    pg_tde now supports using the Vault keyring for secure storage and management of WAL encryption keys.

  • Automatic WAL internal key generation at server startup.

    On each server start, a new internal key is generated for encrypting subsequent WAL records (assuming WAL encryption is enabled). The existing WAL records and their keys remain unchanged, this ensures continuity and secure key management without affecting historical data.

  • Proper removal of relation-level encryption keys on table drop

    Previously, encrypted relation keys persisted even after dropping the associated tables, potentially leaving orphaned entries in the map file. This is now corrected, when an encrypted table is dropped, its corresponding key is also removed from the key map.

  • Fixed external tablespace data loss with encrypted partitions

    An issue was fixed where data could be lost when the encrypted partitioned tables were moved to external tablespaces.

  • New visibility and verification functions for default principal keys

    Added additional functions to help you verify and inspect the state of default principal keys more easily.

  • Fixed SQL failures caused by inconsistent key provider switching

    An issue was resolved where SQL queries could fail after switching key providers while the server was running. This occurred because principal keys became inaccessible when spread across multiple keyring backends, triggering the single-provider-at-a-time design constraint. pg_tde now enforces consistency during provider changes to prevent a corrupted key state and query errors.

Upgrade considerations

pg_tde Release Candidate 2 is not backward compatible with pg_tde Beta2 due to significant changes in code. This means you cannot directly upgrade from one version to another. You must uninstall pg_tde Beta2 first and then install and configure the new Release Candidate version.

Known issues

  • The default mlock limit on Rocky Linux 8 for ARM64-based architectures equals the memory page size and is 64 Kb. This results in the child process with pg_tde failing to allocate another memory page because the max memory limit is reached by the parent process.

To prevent this, you can change the mlock limit to be at least twice bigger than the memory page size:

  • temporarily for the current session using the ulimit -l <value> command.
  • set a new hard limit in the /etc/security/limits.conf file. To do so, you require the superuser privileges.

Adjust the limits with caution since it affects other processes running in your system.

Changelog

New Features

  • PG-817 – Added fuzz testing to pstress to strengthen validation and resilience.
  • PG-824 – Ensured fsync is called on pg_tde.map, pg_tde.dat, and FS key provider files.
  • PG-830 – Implemented full WAL encryption using Vault keyring.
  • PG-831 – Tested WAL recovery and both streaming and logical replication compatibility.
  • PG-855 – Added a contributor guide to help new developers engage with pg_tde.
  • PG-938 – Evaluated use of pg_basebackup for automated backup validation with pg_tde.
  • PG-962 – Automated test cases to validate data integrity after PostgreSQL restart.
  • PG-1001 – Verified encryption behavior of temporary tables.
  • PG-1099 – Developed automation for bare-metal performance benchmarking.
  • PG-1289 – Added test cases for verifying compatibility with different PostgreSQL versions.
  • PG-1444 – Implemented support for removing relation-level encryption keys when dropping tables.
  • PG-1455 – Introduced random base numbers in encryption IVs for enhanced security.
  • PG-1458 – Added visibility and verification functions for default principal keys.
  • PG-1460 – Enabled automatic rotation of WAL internal keys on server start.
  • PG-1461 – Implemented random IV initialization for WAL keys.
  • PG-1506 – Added parameter support for client certificates in KMIP provider configuration.

Improvements

  • PG-826 – Documented how to encrypt and decrypt existing tables using pg_tde.
  • PG-827 – Fixed CI pipeline tests on the smgr branch.
  • PG-834 – Resolved issues with CREATE ... USING pg_tde on the smgr branch.
  • PG-1427 – Tested and fixed KMIP implementation for Thales support.
  • PG-1507 – Handled ALTER TYPE operations in the TDE event trigger.
  • PG-1508 – Fixed encryption state inconsistencies when altering inherited tables.
  • PG-1550 – Restricted database owners from creating key providers to improve security.
  • PG-1586 – Verified and fixed KMIP compatibility with Fortanix HSM.

Bugs Fixed

  • PG-1397 – Fixed segmentation fault during replication with WAL encryption enabled.
  • PG-1413 – Resolved invalid WAL magic number errors after toggling encryption.
  • PG-1416 – Fixed SQL query failures caused by inconsistent key provider switching.
  • PG-1468 – Fixed WAL read failures on replicas after key rotation.
  • PG-1491 – Corrected pg_tde_is_encrypted() behavior for partitioned tables.
  • PG-1493 – Fixed data loss when encrypted partitioned tables were moved to external tablespaces.
  • PG-1503 – Blocked deletion of global key providers still associated with principal keys.
  • PG-1504 – Ensured correct encryption inheritance in partitioned tde_heap tables.
  • PG-1510 – Used different keys and IVs for PostgreSQL forks to prevent conflicts.
  • PG-1530 – Fixed inability to read WAL after toggling WAL encryption.
  • PG-1532 – Resolved errors rewriting owned sequences when pg_tde isn’t in the default schema.
  • PG-1535 – Prevented server crash on calling pg_tde_principal_key_info().
  • PG-1537 – Fixed crash on NULL input in user-facing functions.
  • PG-1539 – Handled principal key header verification errors gracefully.
  • PG-1540 – Ensured sequences are assigned correct encryption status.
  • PG-1541 – Resolved WAL decryption failure after key rotation.
  • PG-1543 – Fixed validation error when multiple server keys exist.
  • PG-1545 – Resolved error from pg_tde_grant_grant_management_to_role() execution.
  • PG-1546 – Fixed incorrect behavior in role grant function.
  • PG-1551 – Improved handling of short reads and errors in WAL storage code.
  • PG-1571 – Fixed WAL decryption failure due to corrupted or mismatched principal keys.
  • PG-1573 – Prevented crash during WAL replay when lock was not held.
  • PG-1574 – Ensured encrypted WAL is readable by streaming replica.
  • PG-1576 – Resolved crash from malformed JSON in user-facing functions.

PG.CENTER edition · Upstream source

11 - pg_tde Release Candidate 1 (2025-03-27)

Changes, compatibility notes, and fixes for pg_tde Release Candidate 1 (2025-03-27).

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

Historical release

This page describes this release at publication time. For current deployment requirements, read the supported versions and limitations.

pg_tde extension brings in Transparent Data Encryption (TDE) to PostgreSQL and enables you to keep sensitive data safe and secure.

Get started

Release Highlights

This release provides the following features and improvements:

  • Improved performance with redesigned WAL encryption.

    The approach to WAL encryption has been redesigned. Now, pg_tde encrypts entire WAL files starting from the first WAL write after the server was started with the encryption turned on. The information about what is encrypted is stored in the internal key metadata. This change improves WAL encryption flow with native replication and increases performance for large scale databases.

  • Default encryption key for single-tenancy.

    The new functionality allows you to set a default principal key for the entire database cluster. This key is used to encrypt all databases and tables that do not have a custom principal key set. This feature simplifies encryption configuration and management in single-tenant environments where each user has their own database instance.

  • Ability to change key provider configuration

    You no longer need to configure a new key provider and set a new principal key if the provider’s configuration changed. Now can change the key provider configuration both for the current database and the entire PostgreSQL cluster using functions. This enhancement lifts existing limitations and is a native and common way to operate in PostgreSQL.

  • Key management permissions

    The new functions allow you to manage permissions for global and database key management separately. This feature provides more granular control over key management operations and allows you to delegate key management tasks to different roles.

  • Additional information about principal keys and providers

    The new functions allow you to display additional information about principal keys and providers. This feature helps you to understand the current key configuration and troubleshoot issues related to key management.

  • tde_heap_basic access method deprecation

    The tde_heap_basic access method has limitations in encryption capabilities and affects performance. Also, it poses a potential security risk when used in production environments due to indexes remaining unencrypted. Considering all the above, we decided to deprecate this access method and remove it in future releases. Use the tde_heap access method instead that is available with Percona Server for PostgreSQL 17 - a drop-in replacement for PostgreSQL Community.

Upgrade considerations

pg_tde Release Candidate is not backward compatible with pg_tde Beta2 due to significant changes in code. This means you cannot directly upgrade from one version to another. You must uninstall pg_tde Beta2 first and then install and configure the new Release Candidate version.

Known issues

  • The default mlock limit on Rocky Linux 8 for ARM64-based architectures equals the memory page size and is 64 Kb. This results in the child process with pg_tde failing to allocate another memory page because the max memory limit is reached by the parent process.

    To prevent this, you can change the mlock limit to be at least twice bigger than the memory page size:

    • temporarily for the current session using the ulimit -l <value> command.
    • set a new hard limit in the /etc/security/limits.conf file. To do so, you require the superuser privileges.

    Adjust the limits with caution since it affects other processes running in your system.

  • You can now delete global key providers even when their associated principal key is still in use. This known issue will be fixed in the next release. For now, avoid deleting global key providers.

Changelog

New Features

  • PG-1234 - Added functions for separate global and database key management permissions.

  • PG-1255 - Added functionality to delete key providers.

  • PG-1256 - Added single-tenant support via the default principal key functionality.

  • PG-1258 - Added functions to display additional information about principal keys / providers.

  • PG-1294 - Redesigned WAL encryption.

  • PG-1303 - Deprecated tde_heap_basic access method.

Improvements

  • PG-858 - Refactored internal/principal key LWLocks to make local databases inherit a global key provider.

  • PG-1243 - Investigated performance issues at a specific threshold and large databases and updated documentation about handling hint bits.

  • PG-1310 - Added access method enforcement via the GUC variable.

  • PG-1361 - Fixed pg_tde relocatability.

  • PG-1380 - Added support for pg_tde_is_encrypted() function on indexes and sequences.

Bugs Fixed

  • PG-821 - Fixed the issue with pg_basebackup failing when configuring replication.

  • PG-847 - Fixed the issue with pg_basebackup and pg_checksum throwing an error on files created by pg_tde when the checksum is enabled on the database cluster.

  • PG-1004 - Fixed the issue with pg_checksums utility failing during checksum verification on pg_tde tables. Now pg_checksum skips encrypted relations by looking if the relation has a custom storage manager (SMGR) key.

  • PG-1373 - Fixed the issue with potential unterminated strings by using the memcpy() or strlcpy() instead of the strncpy() function.

  • PG-1378 - Fixed the issue with toast tables created by the ALTER TABLE command not being encrypted.

  • PG-1379 - Fixed sequence and alter table handling in the event trigger.

  • PG-1222 - Fixed the bug with confused relations with the same RelFileNumber in different databases.

  • PG-1400 - Corrected the pg_tde_change_key_provider naming in help.

  • PG-1401 - Fixed the issue with inheriting an encryption status during the ALTER TABLE SET access method command execution by basing a new encryption status only on the new encryption setting.

  • PG-1414 - Fixed the error message wording when configuring WAL encryption by referencing to a correct function.

  • PG-1450 - Fixed the pg_tde_delete_key_provider() function behavior when called multiple times by ignoring already deleted records.

  • PG-1451 -Fixed the issue with the repeating error message about inability to retrieve a principal key even when a user creates non-encrypted tables by checking the current transaction ID in both the event trigger start function and during a file creation. If the transaction changed during the setup of the current event trigger data, the event trigger is reset.

  • PG-1473 - Allowed only users with key viewer privileges to execute pg_tde_verify_principal_key() and pg_tde_verify_global_principal_key() functions.

  • PG-1474 - Fixed the issue with the principal key reference corruption when reassigning it to a key provider with the same name by setting the key name in vault/kmip getters.

  • [PG-1476](https://perconadev.atlassian.net

PG.CENTER edition · Upstream source

12 - pg_tde Beta 2 (2024-12-16)

Changes, compatibility notes, and fixes for pg_tde Beta 2 (2024-12-16).

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

Historical release

This page describes this release at publication time. For current deployment requirements, read the supported versions and limitations.

pg_tde extension brings in Transparent Data Encryption (TDE) to PostgreSQL and enables you to keep sensitive data safe and secure.

Get started

Important

This version of Percona Transparent Data Encryption extension is not recommended for production environments yet. We encourage you to test it and give your feedback.

This will help us improve the product and make it production-ready faster.

Release Highlights

With this release, pg_tde extension offers two database specific versions:

  • PostgreSQL Community version provides only the tde_heap_basic access method using which you can introduce table encryption and WAL encryption for data in the encrypted tables. Index data remains unencrypted.
  • Version for Percona Server for PostgreSQL provides the tde_heapaccess method. using this method you can encrypt index data in encrypted tables thus increasing the safety of your sensitive data. For backward compatibility, the tde_heap_basic method is available in this version too.

Changelog

The Beta 2 version introduces the following features and improvements:

New Features

  • Added the tde_heap access method with which you can now enable index encryption for encrypted tables and global WAL data encryption. To use this access method, you must install Percona Server for PostgreSQL. Check the installation guide
  • Added event triggers to identify index creation operations on encrypted tables and store those in a custom storage.
  • Added support for secure transfer of keys using the OASIS Key Management Interoperability Protocol (KMIP). The KMIP implementation was tested with the PyKMIP server and the HashiCorp Vault Enterprise KMIP Secrets Engine.

Improvements

  • WAL encryption improvements:

    • Added a global key to encrypt WAL data in global space
    • Added WAL key management
  • Keyring improvements:

    • Renamed functions to point their usage for principal key management
    • Improved keyring provider management across databases and the global space.
    • Keyring configuration now uses common JSON API. This simplifies code handling and enables frontend tools like pg_waldump to read the code thus improving debugging.
  • The pg_tde_is_encrypted function now supports custom schemas in the format of pg_tde_is_encrypted('schema.table');

  • Changed the location of internal TDE files: instead of the database directory, now all files are stored in $PGDATA/pg_tde

  • Improved error reporting when pg_tde is not added to the shared_preload_libraries

  • Improved memory usage of tde_heap_basic during sequential reads

  • Improved tde_heap_basic for select statements

  • Added encryption support for (some) command line utilities

Bugs fixed

  • Fixed multiple bugs with tde_heap_basic and TOAST records
  • Fixed various memory leaks

PG.CENTER edition · Upstream source

13 - pg_tde Beta (2024-06-30)

Changes, compatibility notes, and fixes for pg_tde Beta (2024-06-30).

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

Historical release

This page describes this release at publication time. For current deployment requirements, read the supported versions and limitations.

pg_tde extension brings in Transparent Data Encryption (TDE) to PostgreSQL and enables you to keep sensitive data safe and secure.

Get started

Important

This version of Percona Transparent Data Encryption extension is not recommended for production environments yet. We encourage you to test it and give your feedback.

This will help us improve the product and make it production-ready faster.

Release Highlights

Starting with pg_tde Beta, the access method for pg_tde extension is renamed tde_heap_basic. Use this access method name to create tables. Find guidelines in Test TDE tutorial.

Changelog

  • Fixed the issue with pg_tde running out of memory used for decrypted tuples. The fix introduces the new component TDEBufferHeapTupleTableSlot that keeps track of the allocated memory for decrypted tuples and frees this memory when the tuple slot is no longer needed.

  • Fixed the issue with adjusting a current position in a file by using raw file descriptor for the lseek function. (Thanks to user rainhard for providing the fix)

  • Enhanced the init script to consider a custom superuser for the POSTGRES_USER parameter when pg_tde is running via Docker (Thanks to Alejandro Paredero for reporting the issue)

PG.CENTER edition · Upstream source

14 - pg_tde Alpha 1 (2024-03-28)

Changes, compatibility notes, and fixes for pg_tde Alpha 1 (2024-03-28).

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

Historical release

This page describes this release at publication time. For current deployment requirements, read the supported versions and limitations.

pg_tde extension brings in Transparent Data Encryption (TDE) to PostgreSQL and enables you to keep sensitive data safe and secure.

Get started

Important

This version of Percona Transparent Data Encryption extension is not recommended for production environments yet. We encourage you to test it and give your feedback.

This will help us improve the product and make it production-ready faster.

Release Highlights

The Alpha1 version of the extension introduces the following key features:

  • You can now rotate principal keys used for data encryption. This reduces the risk of long-term exposure to potential attacks and helps you comply with security standards such as GDPR, HIPAA, and PCI DSS.

  • You can now configure encryption differently for each database. For example, encrypt specific tables in some databases with different encryption keys while keeping others non-encrypted.

  • Keyring configuration has undergone several improvements, namely:

    • You can define separate keyring configuration for each database
    • You can change keyring configuration dynamically, without having to restart the server
    • The keyring configuration is now stored in a catalog separately for each database, instead of a configuration file
    • Avoid storing secrets in the unencrypted catalog by configuring keyring parameters to be read from external sources (file, http(s) request)

Improvements

  • Renamed the repository and Docker image from postgres-tde-ext to pg_tde. The extension name remains unchanged
  • Changed the Initialization Vector (IV) calculation of both the data and internal keys

Bugs fixed

  • Fixed toast related crashes
  • Fixed a crash with the DELETE statement
  • Fixed performance-related issues
  • Fixed a bug where pg_tde sent many 404 requests to the Vault server
  • Fixed сompatibility issues with old OpenSSL versions
  • Fixed сompatibility with old Curl versions

PG.CENTER edition · Upstream source

15 - pg_tde MVP (2023-12-12)

Changes, compatibility notes, and fixes for pg_tde MVP (2023-12-12).

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

Historical release

This page describes this release at publication time. For current deployment requirements, read the supported versions and limitations.

The Minimum Viable Product (MVP) version of pg_tde introduces the following functionality:

  • Encryption of heap tables, including TOAST
  • Encryption keys are stored either in Hashicorp Vault server or in local keyring file (for development)
  • The key storage is configurable via separate JSON configuration files
  • Replication support

PG.CENTER edition · Upstream source

16 - Percona Transparent Data Encryption for PostgreSQL release notes index

The upstream release index, with links to version-specific changes.

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

Historical release

This page describes this release at publication time. For current deployment requirements, read the supported versions and limitations.

This page lists all release notes for pg_tde, organized by year and version. Use it to track new features, fixes, and updates across major and minor versions.

2026

2025

2024

2023

  • MVP (2023-12-12)

PG.CENTER edition · Upstream source