400 / 401 · SQL Server
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 SQL Server 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.
Four Babelfish and pg_tde changes
These four changes passed acceptance on a 19.0.1 candidate built on the frozen nine-patch baseline. Earlier baseline images share the version number. The tested Debian 13 x86-64 image ID starts with a3b80a5a99a1. Its /usr/mimus-19/share/mimus/increments.json records each patch’s SHA-256 and its input and output trees. The final kernel, Babelfish extension and pg_tde extension trees are a5c4770bf6b4, c97c68290e5d and 043d79f80d1c, respectively.
| 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 402 | 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 release and assertion builds passed all four cases. Each read and updated seven existing permanent tables after a restart. The release build passed 245 native PG regression tests in each of six configurations. Item 5 is closed. The three T-SQL temporary objects use heap/off, and their relation files and query spills may contain plaintext. Temporary objects and storage coverage