# pg_tde 2.2.0 (2026-05-20)

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

---

LLMS index: [llms.txt](/llms.txt)

---

> This is the Percona pg_tde 2.3.0 manual. For the paired build, backup tools and major upgrades, see [PG TDE on Mimus](/docs/tde/).

> [!NOTE] Historical release
> This page describes this release at publication time. For current deployment requirements, read the [supported versions](/docs/tde/upstream/index/supported-versions/) and [limitations](/docs/tde/upstream/index/tde-limitations/).

The `pg_tde` extension, provided by Percona, adds [Transparent Data Encryption (TDE)](/docs/tde/upstream/index/about-tde/) to PostgreSQL and helps protect sensitive data at rest.

[Get Started](/docs/tde/upstream/install/)

## Release Highlights {#release-highlights}

`pg_tde` now supports 256-bit AES encryption and introduces [`pg_tde_upgrade`](/docs/tde/upstream/command-line-tools/pg-tde-upgrade/), a utility that simplifies the upgrades of encrypted clusters. For more details, see the [Changelog](#changelog).

> [!WARNING]
> `pg_tde` 2.2.0 is not compatible with Percona Distribution for PostgreSQL older than 17.10 or 18.4.

### Documentation updates {#documentation-updates}

* The [Limitations of pg_tde](/docs/tde/upstream/index/tde-limitations/) 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](/docs/tde/upstream/how-to/backup-wal-enabled/) topic is updated with a clearer description of the key rotation limitation during backups.

## Known issues {#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:

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

    This behavior is a known issue.

    For more information, see [pg_tde limitations](/docs/tde/upstream/index/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 {#changelog}

Changes introduced in `pg_tde` 2.2.0:

### New Features {#new-features}

- [PG-1968](https://perconadev.atlassian.net/browse/PG-1968) - AES-256 encryption support, `pg_tde` now supports 256-bit AES encryption, providing stronger cryptographic protection for encrypted tablespaces.
- [PG-2017](https://perconadev.atlassian.net/browse/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](https://perconadev.atlassian.net/browse/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](https://perconadev.atlassian.net/browse/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 {#improvements}

- [PG-2278](https://perconadev.atlassian.net/browse/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 {#bug-fixes}

- [PG-2240](https://perconadev.atlassian.net/browse/PG-2240) - Fixed an issue where `pg_upgrade` would fail when run against databases containing encrypted data.
- [PG-1895](https://perconadev.atlassian.net/browse/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](https://perconadev.atlassian.net/browse/PG-2125) - Fixed key creation failures that occurred when `pg_tde` was configured to use HashiCorp Vault via the KMIP protocol.

[PG.CENTER edition](https://github.com/pgsty/doc.pg.center/blob/4410c32dc9186a22859008303f474b72a779f583/content/percona/release-notes/release-notes-v2.2.0.md) · [Upstream source](https://github.com/percona/pg_tde/blob/5dd7a9e4e3599d88546f5de67ff0f4ef3fe51a9a/documentation/docs/release-notes/release-notes-v2.2.0.md)

---

Backlinks:

- [Upstream release index](/docs/tde/upstream/release-notes/release-notes/)
