# Connections and extensions

> Follow a native, MySQL or TDS connection to a PostgreSQL table.

---

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

---

## From connection to table {#connections}

Every Mimus instance accepts native PostgreSQL connections. For a MySQL application add `pg_mysql`; for a SQL Server application add `babelfishpg_tds` and the Babelfish language and type extensions. The compatibility listener has its own port and object naming rules. Use native PostgreSQL to inspect the physical tables and roles behind either interface.

Choose at most one compatibility protocol per instance. All databases in a data directory share server processes and preload settings. An application that needs both MySQL and TDS needs two instances. The deployment rule is a product support boundary; the server does not enforce it at startup.

On the Debian 13 amd64 r4 candidate, the single-node DocumentDB engine and separate MongoDB gateway passed two logical restore tests. With `pg_restore -N cron`, the target installer recreated its default jobs. To retain the archived jobs and their history, the test paused scheduling on a fresh target, installed DocumentDB and unscheduled its four newly created jobs in one transaction, then restored the complete archive and resumed scheduling. A restored job ran again. In both tests PyMongo read all 63 documents by the original collection name. Older archives missing the collection catalog still need the original database or a matching physical backup.

## Storage and replication {#extensions}

`pg_tde` encrypts relation data locally. Spock replicates logical changes. To protect both copies of a replicated table, provision a key provider and create the encrypted table and indexes on each node. A two-node research test verified the encrypted rows after writes from PyMySQL and FreeTDS. For deployment, select the protocol for each instance and rehearse failover with the keys and software it needs. [Kernel patch groups](/docs/patches/)

---

Backlinks:

- [One kernel, many protocols](/blog/one-kernel-many-protocols/)
- [Introduction](/docs/intro/)
- [Migration and operations](/docs/mssql/operations/)
- [MySQL](/docs/mysql/)
