<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Concepts &amp; Architecture on Mimus</title><link>https://mimus.pgsty.com/docs/concepts/</link><description>Recent content in Concepts &amp; Architecture on Mimus</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Sun, 06 Dec 2026 15:37:05 +0800</lastBuildDate><atom:link href="https://mimus.pgsty.com/docs/concepts/index.xml" rel="self" type="application/rss+xml"/><item><title>Isolation rules, feature locks and exclusions</title><link>https://mimus.pgsty.com/docs/concepts/boundaries/</link><guid>https://mimus.pgsty.com/docs/concepts/boundaries/</guid><description>&lt;h2 id="isolation"&gt;One compatibility listener per instance&#10;&lt;/h2&gt;&#10;&lt;p&gt;Although a Mimus binary built through patch layer &lt;code&gt;401&lt;/code&gt; contains the kernel hooks for both OpenHalo (&lt;code&gt;MySQL&lt;/code&gt;) and Babelfish (&lt;code&gt;MSSQL&lt;/code&gt;), each running &lt;code&gt;PGDATA&lt;/code&gt; cluster enables &lt;strong&gt;at most one&lt;/strong&gt; compatibility protocol alongside native PostgreSQL (&lt;code&gt;5432&lt;/code&gt;).&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;code&gt;shared_preload_libraries&lt;/code&gt;, background workers, parser hooks, and custom GUC namespaces apply across the entire PostgreSQL instance.&lt;/li&gt;&#10;&lt;li&gt;Isolating one compatibility listener per instance keeps parser dispatch, catalog resolution, connection limits, and failover runbooks predictable. Note that this rule is a product support boundary rather than a hard startup error.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;h2 id="feature-lock"&gt;Data-directory feature locks&#10;&lt;/h2&gt;&#10;&lt;p&gt;A plain community PostgreSQL 19.0 data directory can start on Mimus, and an unused Mimus directory with &lt;code&gt;mimus_required_features = ''&lt;/code&gt; can be handed back to stock PostgreSQL 19.0 (verified across 36/36 handoff checks in &lt;code&gt;19.0.1-r4&lt;/code&gt;).&lt;/p&gt;</description></item><item><title>Unified kernel, protocol hooks and gateways</title><link>https://mimus.pgsty.com/docs/concepts/architecture/</link><guid>https://mimus.pgsty.com/docs/concepts/architecture/</guid><description>&lt;h2 id="protocol-classes"&gt;Two classes of wire protocols&#10;&lt;/h2&gt;&#10;&lt;p&gt;PostgreSQL runs one backend process per client connection. Mimus therefore separates wire protocols into two classes so only stateful database sessions touch the kernel:&lt;/p&gt;&#10;&lt;div class="td-table-scroll td-table-scroll--static"&gt;&#10;&lt;table&gt;&#10; &lt;thead&gt;&#10; &lt;tr&gt;&#10; &lt;th scope="col"&gt;Dimension&lt;/th&gt;&#10; &lt;th scope="col"&gt;Session database protocols&lt;/th&gt;&#10; &lt;th scope="col"&gt;Service API protocols&lt;/th&gt;&#10; &lt;/tr&gt;&#10; &lt;/thead&gt;&#10; &lt;tbody&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;Protocols&lt;/td&gt;&#10; &lt;td&gt;PostgreSQL (&lt;code&gt;5432&lt;/code&gt;), MySQL (&lt;code&gt;3306&lt;/code&gt;), MSSQL (&lt;code&gt;1433&lt;/code&gt;)&lt;/td&gt;&#10; &lt;td&gt;MongoDB (&lt;code&gt;27017&lt;/code&gt;), Redis (&lt;code&gt;6379&lt;/code&gt;), etcd (&lt;code&gt;2379&lt;/code&gt;), S3 (&lt;code&gt;9000&lt;/code&gt;)&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;Connection shape&lt;/td&gt;&#10; &lt;td&gt;Stateful session: transactions, session GUCs, temp tables, SQL dialect&lt;/td&gt;&#10; &lt;td&gt;Thousands of pooled requests, long-lived watches, HTTP/gRPC/RESP streams&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;Entry path&lt;/td&gt;&#10; &lt;td&gt;Postmaster hands the socket to a backend process driven by an extension hook&lt;/td&gt;&#10; &lt;td&gt;Stateless external gateway multiplexes client sockets onto a small SQL pool&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;Kernel patches&lt;/td&gt;&#10; &lt;td&gt;Yes: OpenHalo protocol hook (&lt;code&gt;300&lt;/code&gt;/&lt;code&gt;301&lt;/code&gt;) and Babelfish TDS/T-SQL (&lt;code&gt;400&lt;/code&gt;/&lt;code&gt;401&lt;/code&gt;)&lt;/td&gt;&#10; &lt;td&gt;None required: data models and transactional semantics live in SQL/C extensions&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;/tbody&gt;&#10;&lt;/table&gt;&#10;&lt;/div&gt;&#10;&#10;&lt;h2 id="connections"&gt;From connection to physical table&#10;&lt;/h2&gt;&#10;&lt;img class="td-image mimus-diagram only-light" src="https://mimus.pgsty.com/images/arch-en-light.svg" alt="Mimus 19.0.1 kernel stack: native PostgreSQL 5432 and one session compatibility listener over nine PostgreSQL 19.0 patch layers with PG TDE and pgEdge Spock" loading="lazy" decoding="async"&gt;&lt;img class="td-image mimus-diagram only-dark" src="https://mimus.pgsty.com/images/arch-en-dark.svg" alt="Mimus 19.0.1 kernel stack: native PostgreSQL 5432 and one session compatibility listener over nine PostgreSQL 19.0 patch layers with PG TDE and pgEdge Spock" loading="lazy" decoding="async"&gt;&lt;p&gt;Every Mimus instance accepts native PostgreSQL connections on port &lt;code&gt;5432&lt;/code&gt;. Adding &lt;code&gt;pg_mysql&lt;/code&gt; opens MySQL wire connections; adding &lt;code&gt;babelfishpg_tds&lt;/code&gt; and its companion T-SQL extensions opens MSSQL TDS connections. Each compatibility listener maps logical databases onto PostgreSQL schemas so administrators can inspect physical tables, roles, indexes and backups directly from &lt;code&gt;psql&lt;/code&gt;.&lt;/p&gt;</description></item></channel></rss>