Skip to content

SQL Server

Connect SQL Server clients to Mimus 19.0.1 with Babelfish for PostgreSQL and assess a T-SQL application before migration.

Mimus 19.0.1 implements SQL Server compatibility with Babelfish for PostgreSQL. SQL Server clients connect to a PostgreSQL backend over Tabular Data Stream (TDS, default TCP port 1433) and submit T-SQL. The DBA uses a native PostgreSQL connection (default 5432) to initialize Babelfish, inspect the physical tables and back up the cluster.

Start with one table

On Rocky Linux 10.3 x86-64, FreeTDS 1.5.18 logged in to master, inserted two rows and read back a sum of 42. A PostgreSQL connection saw the same rows in wire.master_dbo (database and schema). Deploy TDS on its own Mimus instance if the application also uses MySQL. Follow installation and initialization and your first TDS connection to repeat the check.

What you need to decideWhere to look
Which logical database, schema and login should an application use?Database, schema and role mapping
Will my driver, stored procedures and transactions work?T-SQL and client compatibility
How do I move data, back it up and verify recovery?Migration and operations
How do I create an encrypted table over TDS and verify its indexes and large values?Create encrypted permanent tables over TDS
My procedure uses both encrypted and temporary tables. What can reach disk in plaintext?Temporary tables, table variables and plaintext on disk
How do I diagnose a failed login, import or restore?Known limits and troubleshooting

What the version identifies

Mimus is based on PostgreSQL REL_19_0. Patch 400 imports the Babelfish kernel changes. Patch 401 ports them to PG19 and integrates the protocol handlers. The frozen nine-patch baseline has kernel tree e94b1957f077 and Babelfish extension tree 7ae1f519a130. The earlier connection and source-build examples in this manual used kernel tree 98c4dca860f0. The encrypted-table and temporary-object guides use candidate image a3b80a5a99a1 with additional patches. Check the kernel and extension trees together when identifying a build. Candidate build manifest

Upstream credit

Babelfish for PostgreSQL comes from Amazon Web Services and the Babelfish and PostgreSQL contributors. Its extensions are available under Apache-2.0 or the PostgreSQL License. The monetary type derives from EDB / 2ndQuadrant’s fixeddecimal. The modified PostgreSQL kernel carries the PostgreSQL License. Upstream extensions and notices · Upstream kernel

For additional T-SQL and migration reference, consult the PG.CENTER Babelfish manual.

Prepare a matching server and extension set, then initialize one physical database using psql.

Log in with FreeTDS, write two rows and check them from PostgreSQL. Configure and verify an encrypted connection.

Compare driver operations, procedure calls, type precision, collation and rollback with the application’s requirements.

Plan a SQL Server cutover, reconcile data across endpoints and choose a backup method with a tested recovery path.