Binary SHA-256: 53871626d9f231d5909f8b55b2e692ea3b44ce06c55a01073201a6326374359c.
| Measured scope | Result |
|---|---|
| Fixed common SQL corpus, unchanged 400 templates / 25 data variants | 10,000 / 10,000; cleanup passed |
| Strict PG 17.6 differential cases | 2,572 / 2,572; no errors, skips or waivers |
| Six-language own integration scenarios | 107 / 107; ordinary upstream drivers/adapters |
| Official core, unchanged inputs and expected output | 2 / 224; compatibility gate failed |
| Official main isolation, unchanged inputs and expected output | 1 / 119; compatibility gate failed |
| Native snapshot history and same-storage restoration | 3 passed / 1 failed; quoted database name still rejected |
| Local graceful / SIGKILL recovery | 2 / 2; exact committed rows and absent uncommitted DML/DDL |
The 76 new functional executions cover lock-only deadlines and savepoint recovery, supported LOCAL/RESET/DISCARD settings, first-query REPEATABLE READ, stale versus unrelated write targets, independent held-ALTER transactions and immediate cross-connection commit visibility. Each scenario compares values, wire OIDs, SQLSTATE and state with PG 17.6 in four wire/preparation combinations. The visibility test repeats 100 explicit commits with one RC reader transaction and 20 fresh RR reads in each mode on both engines, without delays or retries.
The final simultaneous corpus/functional/official/framework campaign passed its bounded workload gate with 64 authenticated slots; every official driver attempted its original input, with zero driver timeouts, connection losses or startup failures. Known official semantic failures remain failed gates. The 32-slot v30 campaign retains one official startup denied by the configured connection ceiling. Native units ran separately on the same sources/binary in the final 64-slot campaign; quota-exhaustion fixtures retain their smaller caps.
Earlier failures remain evidence: v28 functional 2,567 passed / 1 failed (stale unrelated-row read after acknowledged commit); v29 functional 2,572 and corpus 10,000 passed, but parallel Laravel catalog and official initialization timed out. Statement admission now obtains an applied native TN/logtail frontier and shares it only with child operations of that statement. Later RC statements obtain a fresh boundary. Passing these campaigns does not establish a latency SLA.
Native snapshot publication waits for an uncommitted PG ALTER; old snapshots retain exact pre-ALTER rows. The ordinary-name restore preserves Unicode, NULL, numeric data, OIDs, CHECK enforcement and removal of post-snapshot relations. Whitespace/embedded-quote database names fail native validation: the complete snapshot gate remains failed. Same-storage restore is not clean-storage backup or PITR validation.
The native broader gate passes 1,503 root/subtest executions in five packages,
including 470 window executions with finite spill/refund checks. Selected
frontend/txn/lockservice units pass 131 executions; lifecycle/ALTER units 260;
savepoint retirement units 3; native wire 15. Comparator/progress units pass 20.
The separate four-case production selection includes 4,000 prepared transactions
and exactly 2,000 committed payloads; seven quota scenarios were deselected.
Raw evidence, per-scope hashes and health/cleanup results are in
validation-summary.json.
Complete PG compatibility and production qualification remain false.
SERIALIZABLE/SSI, complete row/table/advisory modes, COPY/SCRAM, full types,
catalogs/roles/schemas/procedures/triggers/extensions, complete upstream apps,
distributed failures/durability, clean backup/PITR, upgrades and soak remain open.
See ../production/ACCEPTANCE.md and its machine-readable matrix.
The reports below belong to earlier binaries; they are retained, not current verdicts. Parameter/data variants are not independent SQL features.
Native v23 SHA-256: 0938fce78adee8227c38a25ac49e71e34ea8033112b83515405663706b080a60. The final isolated four-worker fixed corpus
passed 10,000/10,000, the strict functional gate 2,496/2,496, and ordinary
six-language application scenarios 107/107, with no skip/xfail waiver.
The 28 new functional executions cover real native backend identity and wait
edges, commit/rollback/cancel/disconnect release, three-session chains and real
deadlock victim SQLSTATE 40P01 plus failed-transaction recovery on both engines.
They include four text/binary and prepared/unprepared variants per scenario.
Official original-input/raw-output verdicts remain core 2/224, isolation 1/119. Isolation initialization now works: 21 inputs reach steps, covering 157 permutations with steps and 1,027 step commands; 86 global and 12 session setup failures remain. The 257 printed headings are not all executed permutations. Selected semantic supplement: 94/94, including 74 original official queries. Original official SQL and expected outputs are unchanged, with explicit UTC/ISO startup adaptations. Failed fixtures can cause dependent failures.
The complete window package passes 470 test executions. The earlier three spill failures were disk admission under the automatic 16 GiB reserve, not an operator memory cap. Seven forced-spill tests now install a finite private ledger and verify memory/disk/FD refunds. The one-byte trigger and production admission policy are unchanged; earlier raw failures remain retained.
A combined corpus/official/framework run passed 9,993/10,000: seven native DDL lock/statement timeouts remain an unresolved production risk. The unchanged four-worker isolated rerun passing does not resolve that failure. The separate correctness stress verifies 4,000 prepared transactions and 2,000 exact committed rows. Both local recovery scenarios pass; after SIGKILL all 101 committed rows survive and uncommitted INSERT/UPDATE/DELETE/CREATE TABLE effects are absent. Neither stress nor local recovery establishes capacity, HA or backup/restore.
See validation-summary.json, ../official/validation-summary.json and
../production/ACCEPTANCE.md for hashes, scopes, failures and the remaining
release matrix. Full PG compatibility and production qualification remain false.
The v21 report below belongs to its earlier binary. Its missing isolation hook and spill diagnosis are superseded by the v23 evidence above; raw logs remain available. Parameter/data variants never count as independent SQL features.
The source-aligned v21 native binary passed 10,000/10,000 unchanged common SQL cases, 2,468/2,468 functional cases and 107/107 application integration scenarios across Python, Node.js, Go, Java, Ruby and PHP. Functional cases have zero failures, errors, skips or waivers. The new module contributes 401 SQL scenario templates across four text/binary and prepared/unprepared modes: 1,604 additional executions, not 1,604 independent SQL features.
The expansion fixes simultaneous UPDATE assignment evaluation, peer exclusions (GROUP/TIES/NO OTHERS) in native window execution, JSON versus JSONB extraction OIDs and scalar behavior, JSONB text/key ordering and multi-key deletion, one-dimensional array dimension/position lookup and invalid function signatures. ORM-generated updates and rollback check original-row values in six languages.
The complete official raw-output gate still fails: core 2/224; isolation 0/119, with all 119 inputs failing driver initialization because the official blocking-detection hook is missing. No isolation permutations execute. The selected semantic supplement passes 94/94 (74 verbatim official queries and 20 additional cases); this does not override the complete official verdict.
Three broader window spill tests remain failing when their one-byte operator
budget rejects an eight-byte admission request. They remain visible alongside
the passing PG-focused checks. Full PG compatibility and production
qualification remain false. Raw results, binary hashes, all scopes and failures
are recorded in validation-summary.json and the official validation summary.
The historical tables below are retained evidence for older binaries; their resolved failures must not be read as current verdicts.
Later v9 validation reran all 742 functional cases: 740 passed, two persisted
JSON OID differences remain, zero errors/skips. The six language application
suites passed 99/99. The new 10,000-statement corpus passed 5,702 cases and
failed 4,298; PostgreSQL reference validation passed 10,000/10,000. Full evidence
and v9 binary hash are in ../corpus/validation-summary.json. Earlier tables
below are retained history, rather than current verdicts for those old gaps.
Native MatrixOne CN (PG 5432, mandatory TLS and certificate verification) versus real PostgreSQL 17.6 on an isolated local reference server. Each run used fresh databases. No adapter patches, mocked database, skip or xfail waiver was used.
| Category | Passed | Failed | Total |
|---|---|---|---|
| SQL expressions, joins, aggregates, windows, set operations and parameters | 123 | 6 | 129 |
| Typed parameters, binary/text results, persisted values and invalid-input validation | 197 | 7 | 204 |
| DML, constraints, account transfer, FK actions and DDL | 42 | 0 | 42 |
| Session visibility, cursors, savepoints and concurrent transactions | 15 | 0 | 15 |
| Total | 377 | 13 | 390 |
The runner returned 1, with zero errors and zero skips. Mode variants count as separate executions, not separate SQL features. The JSON report contains all case identifiers, versions, timings and failure messages; XML and the complete pytest log retain detailed evidence.
| Gap | Failing cases | PostgreSQL behavior versus current MO |
|---|---|---|
/ division semantics |
3 | PostgreSQL supports integer division and raises 22012 for zero; MO rejects the operator with 0A000 |
<> ANY(ARRAY[...]) |
1 | PostgreSQL evaluates the predicate; this array form is unsupported |
IS DISTINCT FROM |
1 | PostgreSQL performs NULL-safe comparison; current grammar rejects it |
| UNNEST of untyped literal ARRAY | 1 | PostgreSQL returns its elements; this literal form is unsupported |
| VALUES used as a derived relation | 1 | PostgreSQL supports the relation and named columns; current grammar rejects it |
| Invalid date casts | 2 | '2023-02-29'::date raises 22008 in PostgreSQL but returns NULL in MO, for both literal and stored-column input |
| Numeric cast overflow | 2 | '123456.78'::numeric(5,2) raises 22003 in PostgreSQL but returns 999.99 in MO, for both literal and stored-column input |
| Persisted JSON result type | 2 | PostgreSQL reports JSON OID 114; MO reports JSONB OID 3802, in both text/binary reads |
The date and numeric cast differences block production acceptance. They can silently change results. The gate intentionally remains red until the relevant semantics are fixed. The table records observed gaps, not an exhaustive list of every PostgreSQL feature that is unsupported.
The expanded tests identified and verified fixes for PG GREATEST/LEAST ignoring
NULL arguments, CONCAT ignoring NULL without changing strict ||, ILIKE and
REPLACE parsing, tagged/untagged dollar strings, typed empty ANY arrays, scalar
JSON and typed array projection OIDs, signed window ranking results with
overflow rejection, invalid input/truncation SQLSTATEs, filtered aggregates,
explicit NULLS ordering in windows/nested queries, READ COMMITTED BEGIN syntax
and INSERT target aliases emitted by TypeORM. MySQL extrema and concatenation
regressions were also run.
| Ecosystem | Passed scenarios |
|---|---|
| Python: Django / Flask / SQLAlchemy / Alembic / psycopg | 63 |
| Node: TypeORM / Express / Prisma / node-postgres | 10 |
| Go: GORM / Gin | 6 |
| Java: Spring Boot / Hibernate / JDBC | 5 |
| Ruby: Rails / ActiveRecord / AR JDBC | 7 |
| PHP: Laravel migrations / Eloquent / router | 8 |
| Total | 99 |
This adds 34 framework scenarios to the previous 65. The standard all-ecosystem runner passed after the Python/Node expansion; Go/Java/Ruby/PHP were then expanded and rerun individually. Node's full 10-scenario suite also passed against actual PostgreSQL as a validity check of the tests themselves. Rails reported 39 assertions, zero failures/errors/skips. The framework apps test upstream package behavior; these counts do not mean their complete upstream test suites passed.
159 native Go test functions passed across six packages (420 results including nested subtests), with zero failures/skips. Thirteen real wire subcases also passed: eleven PG integration cases and two startup/TLS authentication cases. These counts are separate from the 390 differential cases and 99 framework scenarios. A live native MySQL probe confirmed GREATEST/LEAST/CONCAT still propagate NULL while the PG forms use their PostgreSQL NULL rules.
Passing examples do not establish general PostgreSQL compatibility or production readiness. Backup/restore, HA, rolling upgrades, extended soak and the remaining semantics still require separate release gates.
The subsequent v8 expansion ran 742 strict cross-server cases: 740 passed and
2 failed, with no errors or skips. All 352 new cases in test_expansion.py
passed. The remaining differences are the two text/binary persisted json
roundtrips returning JSONB OID 3802 instead of JSON OID 114. This is the failure
count for the selected corpus, not a count of all remaining PostgreSQL gaps.
Evidence: /workspace/work/pg-expansion/functional-v8/differential.json.
Broader official results and limits are recorded in
../official/expansion-summary.json and ../official/VALIDATION.md.