Skip to content

400 / 401 · MSSQL (Babelfish)

Babelfish parser and executor changes, the PostgreSQL 19.0 port and TDS integration.

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

ChangeDelivered inWhat users see
1 · Table encryption optionBabelfish extension 001CREATE TABLE … WITH (ENCRYPTION=ON/OFF) fails before creating a table, preventing accidental delivery of a plaintext table as encrypted.
2 · Index DDL on encrypted tablespg_tde extension 002TDS 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 selectionSQL example in the imageA 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 cleanupBabelfish extension 004 and kernel 401Statements 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

Scan to open this page
https://mimus.pgsty.com/docs/reference/patches/mssql/