This is the multi-page printable view of this section.
Kernel Patch Manifest (000–401)
- 1: Base · PostgreSQL 19.0
- 2: 100 / 101 · Percona TDE
- 3: 200 / 201 · pgEdge
- 4: 300 / 301 · MySQL
- 5: 400 / 401 · MSSQL (Babelfish)
This reference catalogs the exact nine kernel patch layers (000 through 401) recorded in patch/series.json. Start at Base · PostgreSQL 19.0 for the community commit, cluster feature locks, and matched extension source trees, then inspect each upstream-and-adaptation pair (100/101, 200/201, 300/301, 400/401) in build order.
1 - Base · PostgreSQL 19.0
Version identity
19.0.1 means community PostgreSQL 19.0 (REL_19_0, 5c839a2a08b9) plus Mimus revision 1. In 19.0.1-r4, the final patch commit 7af97b6707f5 and the integration commit 0d8a551aa121 in pgsty/mimus have the same tree, 07fbb73680de. The candidate was built from that tree. Some programs in this build, including pg_dump --version, report PostgreSQL 19.0. Keep the build revision and the extension builds with the backup inventory. PostgreSQL 19 manual
What 000 shares
Patch 000 adds common code to record features on first use and check requirements when the server starts. Later pairs supply the feature-specific checks. Read SHOW mimus_required_features on a running server. An unused cluster starts with an empty list. A cluster that installed an extension can still need its recovery support after application sessions disconnect. Preserve the recorded requirements and provision the matching recovery software.
No extension is needed for native PostgreSQL connections. Start here to connect with psql or check the tested platforms.
Match the extension sources
The r4 freeze records the nine kernel layers and the extension inputs in patch/series.json (format 8, patch repository commit 4089ead024de). The kernel layers are 000, 100, 101, 200, 201, 300, 301, 400 and 401, in that order. The standard installation prefix is /usr/mimus-19. Build each extension with that installation’s bin/pg_config and headers. The SQL extension version alone cannot identify a local adaptation.
For a MySQL installation, the mimus/ checkout already contains the integrated kernel. The sibling pg_mysql/ checkout supplies the complete extension. Build from the two source repositories
| Component | Source to build | Resulting Git tree |
|---|---|---|
| pg_tde | pg_tde/ at 5424c937188c plus ext-pg-tde- patches 000, 002, 007, 008, 009, 010 in manifest order | c62d1e2dceae |
| pgEdge (Spock) | spock/ at 5.0.15, frozen commit e710faa6fe21126d898fa660e9b6dc8ed0da9438 | 8da352a31c41 |
| pg_mysql | pg_mysql/ at 1e631f9802c5 | 53dd9be3e87b |
| Babelfish extensions | babelfish/babelfish_extensions/ at 99c35f5ebb80 plus ext-babelfish- patches 001, 004, 010, 011, 012, 013, 014 | 891436a7f948 |
The single-node DocumentDB build starts from documentdb-1.2-0.tar.gz (SHA-256 72069b5b0b48d571dd01b2e9ff587fc56e66762c7ecefecc76e9a7335e46dd6e). The candidate applies ext-documentdb-001-extension-config-dump.patch so a logical archive includes the collection metadata. Its separate gateway is version 1.2.0. Gateway and restore scope
For pg_tde, prepare the indicated extension sources with subprojects/libkmip at 1bf36d7ecdb8, then run meson setup build -Dpg_config=/usr/mimus-19/bin/pg_config and meson install -C build in the extension directory. For Spock, put the matching bin directory first in PATH and run make PG_CONFIG=/usr/mimus-19/bin/pg_config followed by make PG_CONFIG=/usr/mimus-19/bin/pg_config install. Run the install step with write access to the target prefix.
2 - 100 / 101 · Percona TDE
Percona storage changes
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
Integration and compatibility
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.
Index DDL on encrypted tables
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 · Candidate build manifest
WAL and online 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
3 - 200 / 201 · pgEdge
Upstream replication support
200 imports PG19 patches 015, 025, 030, 035 and 090 from Spock 5.0.15. The apply worker can use a column’s previous value to merge concurrent increments. When a conflicting local row wins but its numeric value must still change, the worker can write a new row version and preserve the original timestamp and origin. Upstream patch 030 added a separate CommitTs/SUBTRANS_TS WAL record (0x20) for this history. Spock PG19 patches
Recovery support
201 records the cluster requirement when CREATE EXTENSION spock succeeds. In r4, 201 writes the surviving subtransaction timestamp and origin overrides in the same WAL record as the transaction’s COMMIT. The matching kernel replays them even on a recovery instance without logical workers. Archives containing the earlier 0x20 record require their original recovery environment. Preloading the extension on the writable nodes enables replication. Before activating it, upgrade every physical standby and PITR environment that may have to replay a new record. Use pg_waldump for plaintext WAL or the paired pg_tde_waldump and keys for encrypted WAL.
For node setup, conflict handling and rollback decisions, see the pgEdge manual.
4 - 300 / 301 · MySQL
300 imports the server-side changes selected from OpenHalo v19.0.0. Its protocol hooks let a preloaded module register a listener and drive the client handshake and command loop in a PostgreSQL backend. pg_mysql supplies the MySQL protocol and dialect. The native listener continues to speak PostgreSQL. OpenHalo
301 adapts protocol registration, type coercion, collation and foreign-key handling, and the server defaults. It checks for the registered MySQL callbacks on a cluster that depends on them. Use the matching pg_mysql build when starting or restoring that cluster. An application migration should exercise its actual driver and column types. Deploy a separate instance if TDS access is also required.
For application access and compatibility, see the MySQL manual.
5 - 400 / 401 · MSSQL (Babelfish)
400 imports native Babelfish changes selected against its PG19 beta base. They give the Babelfish extensions access to parser, executor, catalog, session and error-reporting paths needed for T-SQL. babelfishpg_tds handles the wire connection. babelfishpg_tsql, babelfishpg_common and babelfishpg_money provide the language and supporting types. Babelfish for PostgreSQL
401 completes the port to the 19.0 release. It reconciles listener and parser changes with OpenHalo, adds startup checks for dependent clusters and connects the Babelfish dump helpers to the Meson build. Use the complete pair to build the dump utilities. When migrating a database, verify SQL Server object naming, temporary tables and dump/restore on the chosen build. The cross-protocol row test covered a table defined on both nodes.
For connecting a TDS client and assessing T-SQL compatibility, see the MSSQL manual.
The current 401 also scopes a temporary union inside pg_bswap128() so that pgrx can generate Rust bindings from the installed PG19 headers. Regenerate bindings against the target Mimus SDK.
Babelfish and pg_tde in r4
The r4 kernel ends at layer 401, which now includes the temporary-relation reference fix originally tested as layer 402. The paired extensions supply the T-SQL checks and storage behavior below. The example SQL can be used from a TDS deployment connection. r4 kernel and extension trees
| Change | Delivered in | What users see |
|---|---|---|
| 1 · Table encryption option | Babelfish extension 001 | CREATE TABLE … WITH (ENCRYPTION=ON/OFF) fails before creating a table, preventing accidental delivery of a plaintext table as encrypted. |
| 2 · Index DDL on encrypted tables | pg_tde extension 002 | TDS can add an index with enforcement on. An encrypted index stays encrypted after PG changes its parameters, moves its tablespace or rebuilds it. Index patch |
| 3 · Per-table selection | SQL example in the image | A dedicated TDS transaction creates the table and verifies its storage, two indexes, TOAST table and TOAST index before committing. Deploy and verify |
| 4 · Temporary relation cleanup | Babelfish extension 004 and kernel 401 | Statements and cursors release their own references. A cursor can finish reading a temporary relation after a procedure returns, with cleanup governed by the transaction outcome. |
The earlier component build (a3b80a5a99a1) exercised these four changes, including reads and updates of seven existing permanent tables after restart. r4 also fixes temporary-key cleanup in pg_tde 010 and passed all 45 preload and installation orders involving TDS. T-SQL temporary objects using ordinary heap and query spill files can contain plaintext. Temporary storage · r4 coverage
Babelfish patches 010–013 cover UTF-16 byte length for nvarchar and selected CONVERT styles for floats, binary values and dates. Patch 014 installs the synonym and stop-word files used by full-text search. Application compatibility