Skip to content

One kernel, many protocols

What a week of porting and merging PostgreSQL forks taught us about a multi-protocol PostgreSQL, and why Mimus ships in two steps.

Several PostgreSQL forks each teach PostgreSQL one foreign language: openHalo speaks MySQL, Babelfish speaks SQL Server, IvorySQL speaks Oracle. Each is a separate kernel with its own release cycle, its own extension builds and its own users. Mimus asks a simpler question: can one PostgreSQL kernel carry these languages as loadable parts, on the same data, without becoming another fork that nothing else runs on?

In the first week of November 2026 we tried it.

MySQL no longer needs a fork

openHalo 1.0 implemented MySQL compatibility by changing about 320 files of PostgreSQL 14. Porting it to PostgreSQL 18, we moved everything MySQL-specific into one extension, aux_mysql, and kept a small generic kernel patch: 12 files that let an extension listen on another port and drive a regular backend. The patch knows nothing about MySQL. It changes no catalog, no parse node and no function signature, and stock PGDG builds of PostGIS, pgvector, Citus, TimescaleDB and pg_cron load unchanged. The same patch applied to PostgreSQL 19rc1 with one conflict.

That result became OpenHalo 18 . An adversarial review then found real defects in the ported code, so it is a development preview, not a release. The architecture held up; the details need work.

Not every protocol belongs in the kernel

MySQL and SQL Server are session protocols: one connection, one session, one backend process. Redis, etcd and S3 are different. Their clients open thousands of connections and keep watches and subscriptions open. PostgreSQL’s process-per-connection model is the wrong place to terminate them. pgredis, pgetcd and pgsilo therefore put the data model in an extension or schema and terminate the protocol in a gateway that multiplexes connections. They run on stock PostgreSQL, and they join Mimus through packaging, configuration and shared operations, not kernel changes.

So the kernel opens exactly one door, for session protocols. See Architecture .

The hard part is ABI, not code

We merged Percona’s storage patches, OrioleDB and Babelfish onto one PostgreSQL 18.6 tree and loaded MySQL, TDS, OrioleDB and pg_tde in one instance. Every suite passed. Running is not the problem.

Binary compatibility is. Babelfish changes parse-node layouts and renumbers node tags; OrioleDB reorders the table access method interface. With either in the kernel, stock extension packages crash or fail, and every extension has to be rebuilt for Mimus. That turns Mimus into a separate major version in every build matrix.

Hence the plan in the roadmap :

  • Mimus 1 keeps PostgreSQL’s ABI: the protocol hook plus Percona’s storage patches. MySQL, Redis, etcd and S3, with the existing extension packages.
  • Mimus 2 adds SQL Server and accepts its own ABI and build matrix.
  • OrioleDB stays a separate flavor until upstream PostgreSQL offers the interfaces it needs.

What we have not proven

The promise of Mimus is that a MySQL or SQL Server client can use what PostgreSQL extensions provide: PostGIS geometry, pgvector search, Citus distribution. Nobody has tested that yet. Unified authentication across five credential schemes, behaviour during failover, and the cost of the protocol hook are open too. Verification status keeps the list.

This site collects what exists and marks what does not. Each protocol section says where its source project stands.