PostgreSQL

Status: Full
Default port: 5432
Compared against: PostgreSQL 16

Scores are from main at a3232c9 (2026-11-30) unless noted. Full means a deep multi-phase differential suite matches the reference and real applications run on the wire; Preview means the suites are strong but app coverage, a local reference or a known gap is still missing. See How a wire is proven.

What was measured

311/314: query corpus with result column types 276/279, second connection 14/14, restart after kill -9 21/21.

Feature matrix 295/295. ORM suites: Prisma 12/12, Drizzle 21/21, Knex 19/19, TypeORM 13/13. The 3 differences are float4 sum/avg precision and the digit count of stddev.

(source: README.md, Wire scorecard)

Connect

psql -h localhost -U postgres -d synergydb

Accounts: the superuser is postgres on a new install. Create users with CREATE USER ... PASSWORD over the PostgreSQL wire. How each wire authenticates, and which wires are open by default, is in Security.

Known gaps

  • Joins are the weak spot for speed: range joins run at about 70% of PostgreSQL 16, and 32-client TPC-B at 88% (see Benchmarks).
  • REPEATABLE READ and SERIALIZABLE take real snapshots (lost updates raise 40001, write skew is prevented), but compaction keeps only the newest version of a key, so a snapshot held open across a compaction of a key it overwrote is not protected.
  • The Tantivy BM25 index in src/index/fulltext.rs is not reachable from SQL. to_tsvector(...) @@ to_tsquery(...) works. The README says it matches PostgreSQL on the 8 full-text probes. The committed feature matrix (undated, header total 269/295) shows 6 of 8: phraseto_tsquery diverged and the trigram % probe failed in the harness's decimal decoding. Status entries from 2026-11-24 to 2026-11-30 report the whole feature matrix at 295/295 without listing the full-text rows, so the committed file predates them (source: README.md, Known gaps; test-scripts/feature-matrix/FEATURE_MATRIX.md, fts section; docs/status/2026-11-24-statement-snapshot.md, docs/status/2026-11-30-pg-result-types.md, Gates run). Detail: Full-text search.
  • Open bug (Nov 30): a very large COPY ... FROM can run out of memory. Split large loads into batches until the fix lands. A branch fix is described in docs/status/2026-11-30-copy-bounded-memory.md; check whether it is merged in the build you run.
  • Row-level security beyond simple policies: see Security.

(source: README.md, Known gaps, unless another file is named)

Re-run the proof

One command, from a clone of the repository (needs Docker, Python 3.10+ and Rust):

make prove ARGS='--wires postgres'

This starts the reference engine in Docker next to a fresh SynergyDB, runs every phase and writes prove/out/latest/report.html. (source: prove/README.md)

By hand:

python test-scripts/diff/diff_harness.py --strict
python test-scripts/feature-matrix/feature_matrix.py

The by-hand steps (reference containers, Python packages, the all-wires diff config) are in Benchmarks and reproduction.

Proof files

  • docs/proof/2026-11-30/proof-pack-a3232c9/logs/postgres-query-corpus.txt
  • docs/proof/2026-11-30/proof-pack-a3232c9/logs/postgres-second-connection-restart.txt
  • docs/proof/2026-11-30/proof-pack-a3232c9/logs/postgres-feature-matrix.txt
  • docs/status/2026-11-30-pg-diff-column-types.md
  • docs/status/2026-11-30-pg-scram.md