# 100 / 101 · Percona TDE

> Storage and WAL interfaces, startup checks and the matching backup client.

---

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

---

## Percona storage changes {#storage}

100 imports selected changes from Percona’s PostgreSQL 19 tree, including its TOAST fix. A pluggable storage manager, relation-file identity during rewrites, asynchronous I/O callbacks and WAL segment I/O hooks give `pg_tde` a place to encrypt and decrypt pages. The extension supplies `tde_heap`, key management and the WAL implementation. [Percona PostgreSQL](https://github.com/percona/postgres)

## Integration and compatibility {#add-only}

101 integrates callback registration and checks that the TDE storage, WAL and recovery methods are ready before replay on a marked directory. The matching backup client checks whether the source requires TDE-aware WAL handling. Using an older plain client can bypass this check. The paired `pg_tde_waldump` also identifies Spock’s subtransaction commit-time record in encrypted WAL. These interfaces affect extension builds even if every application table uses ordinary heap storage.

To choose which objects to encrypt and which backup tool to use, follow the [PG TDE manual](/docs/tde/).

## Index DDL on encrypted tables {#index-ddl}

In r4, `ext-pg-tde-002-index-encryption.patch` changes the DDL event handler in the pg_tde extension. A B-tree index reports `btree` in `pg_am`. The extension checks the index file’s encryption state during `ALTER INDEX`, including the internal operation that records the original name of a TDS index.

Acceptance covered enforcement both on and off. Encrypted indexes stayed encrypted after a `fillfactor` change, a tablespace move and `REINDEX`. Enforcement continued to reject parameter changes to a plaintext index. Existing indexes retain their own storage state. Check indexes moved with an older build individually by OID. [Verify indexes and TOAST](/docs/mssql/encrypted-tables/#verify) · [Candidate build manifest](/docs/reference/patches/mssql/#tde-increments)

## WAL and online backup {#wal-backup}

Kernel layer 100 and pg_tde extension patch `009` carry the WAL key-switch fix. Layer 101 exposes the backup page-verification callback. Extension patch `010` decrypts a copy of the page for checksum verification and fixes temporary-key cleanup. Recovery still depends on the historical keys and their mappings. [Restore and verify a backup](/docs/tde/recovery/)

---

Backlinks:

- [The kernel patches pg_tde needs and their upstream prospects](/blog/pg-tde-kernel-patches-and-upstream/)
- [400 / 401 · MSSQL](/docs/reference/patches/mssql/)
- [PG TDE](/docs/tde/)
