|
| 1 | +# pg_tde 2.2.0 ({{date.2_2_0}}) |
| 2 | + |
| 3 | +The `pg_tde` extension, provided by Percona, adds [Transparent Data Encryption (TDE)](../index/about-tde.md) to PostgreSQL and helps protect sensitive data at rest. |
| 4 | + |
| 5 | +[Get Started](../install.md){.md-button} |
| 6 | + |
| 7 | +## Release Highlights |
| 8 | + |
| 9 | +`pg_tde` now supports 256-bit AES encryption and introduces [`pg_tde_upgrade`](../command-line-tools/pg-tde-upgrade.md), a utility that simplifies the upgrades of encrypted clusters. For more details, see the [Changelog](#changelog). |
| 10 | + |
| 11 | +!!! warning |
| 12 | + `pg_tde` 2.2.0 is not compatible with Percona Distribution for PostgreSQL older than 17.10 or 18.4. |
| 13 | + |
| 14 | +### Documentation updates |
| 15 | + |
| 16 | +* The [Limitations of pg_tde](../index/tde-limitations.md) 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. |
| 17 | +* The [Backup with WAL encryption enabled](../how-to/backup-wal-enabled.md) topic is updated with a clearer description of the key rotation limitation during backups. |
| 18 | + |
| 19 | +## Known issues |
| 20 | + |
| 21 | +* `pg_rewind` and `pg_tde_rewind` |
| 22 | + |
| 23 | + 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. |
| 24 | + |
| 25 | + Queries may fail with: |
| 26 | + |
| 27 | + ```bash |
| 28 | + ERROR: invalid page in block 0 of relation "base/..." |
| 29 | + ``` |
| 30 | + |
| 31 | + This behavior is a known issue. |
| 32 | + |
| 33 | + For more information, see [pg_tde limitations](../index/tde-limitations.md). |
| 34 | + |
| 35 | +* 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. |
| 36 | + |
| 37 | + To prevent this, you can change the `mlock` limit to be at least twice the memory page size: |
| 38 | + |
| 39 | + * temporarily for the current session using the `ulimit -l <value>` command. |
| 40 | + * set a new hard limit in the `/etc/security/limits.conf` file. To do so, you require the superuser privileges. |
| 41 | + |
| 42 | + Adjust the limits with caution since it affects other processes running in your system. |
| 43 | + |
| 44 | +## Changelog |
| 45 | + |
| 46 | +Changes introduced in `pg_tde` 2.2.0: |
| 47 | + |
| 48 | +### New Features |
| 49 | + |
| 50 | +- [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. |
| 51 | +- [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. |
| 52 | +- [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. |
| 53 | +- [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. |
| 54 | + |
| 55 | +### Improvements |
| 56 | + |
| 57 | +- [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. |
| 58 | + |
| 59 | +### Bug Fixes |
| 60 | + |
| 61 | +- [PG-2240](https://perconadev.atlassian.net/browse/PG-2240) - Fixed an issue where `pg_upgrade` would fail when run against databases containing encrypted data. |
| 62 | +- [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. |
| 63 | +- [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. |
0 commit comments