First published on the Tech Style blog.
Until this month, a Paritas server could speak two dialects at once. Oracle mode listened on one port, PostgreSQL's on another, and a session chose its grammar by where it came in. It sounded like the best of both. We have now taken it out, and a Paritas server runs in Oracle mode only. This post explains why, because the reasons are the kind of thing that only shows up when you test against a real Oracle.
Two readings of the same object
Oracle has one reading of SQL text in a database. Two grammars in one server means two readings, and the trouble is that stored objects do not know which door the next query will come through.
We found it in an index. An index over an expression like v || w was built under Oracle's rules. A query through the Oracle port found a row with an index scan. The same query through the PostgreSQL port, reading || the PostgreSQL way, scanned the table and did not find it. One stored object, two answers, and no error anywhere.
Then the background processes. Autovacuum is not a client, so it ran in PostgreSQL's mode. It summarised a BRIN index by PostgreSQL's reading of the indexed expression, and afterwards that index found only a fraction of the rows a plain scan found. Statistics gathering on an index over a PL/SQL function failed on every cycle. On Oracle, statistics and background jobs compute a stored expression exactly as a session does. Ours did not.
Every fix we sketched for these had the same shape: a second rule, a second column, a second path for the PostgreSQL-mode port. When every remedy needs a road through the second mode, the second mode is the problem.
What one mode means now
A Paritas server is made in Oracle mode, and the mode is fixed there. Every session runs in it, on either port, and nobody switches it: not a SET, not a connection option, not a superuser. It is set before a session's role and options are even read, so a stored setting is read the Oracle way too. Autovacuum, background workers and logical replication's workers take the same mode. Oracle runs a database under one compatibility, and so does Paritas.
That does not make it a closed box. PostgreSQL's client tools and drivers connect as they always did. PL/pgSQL still runs, and so do PostgreSQL's extensions and the PostgreSQL functions that no Oracle function replaces. Logical replication works to another Paritas server and to a stock PostgreSQL 18 subscriber, and we test both.
Restores that cannot lie
One mode made a second rule necessary. An archive written by a PostgreSQL server, read by Oracle's rules, comes back meaning something else: an empty string becomes NULL, a lower-case name folds to another object. It restores without a single error, and it is wrong.
So Paritas now restores only an archive that its own pg_dump made from a Paritas database, and refuses any other before its first object. Databases from other sources come across through the migration tools, which know they are converting.
Where PostgreSQL fits
If you want PostgreSQL, run PostgreSQL. Paritas runs on PostgreSQL, and the enterprise layers we are working on power the PostgreSQL underneath. They are being built so they can power plain PostgreSQL as well, with no Paritas on top. Once Paritas is running, PostgreSQL mode is taken off. The choice is made once, for the whole server, which is how an architect would want it.
The honest part
Paritas is still in development and not for sale. We are aiming to release it next quarter. Our list of limitations now runs to more than 900 entries, each saying what happens and most saying what to do instead, because the point of Paritas is to tell you where compatibility ends.
The full picture is on the product page: tech-style.co/product-paritas. If you are planning a move off Oracle, write to us at tech-style.co/contact?topic=Paritas.


