The target is pg-datahike 0.2.0. Stable means a dependable PostgreSQL interface to Datahike for the surface we claim, not PostgreSQL feature parity. The release rule is:
No silent wrong answers or internal failures in the supported surface; unsupported behavior fails explicitly with a PostgreSQL SQLSTATE.
test/integration/beta-exit.edn is the campaign ledger. It names every release
gate, open blocker and deliberate non-goal. Validate and print it with:
bb beta-exit
| Boundary | Current admission | What green means |
|---|---|---|
| Unit and focused regression tests | full suite, per commit | Known translator, execution, catalog, pgwire, temporal and fuzz findings remain fixed. |
| SQLLogic | full local corpus, per commit | The admitted application-facing SQL examples return their checked results. |
| Released secondary stack | focused Datahike/Scriptum/Proximum/Stratum vertical on JDK 25, per commit | Secondary creation, mutation, fallback, pagination, history and lifecycle contracts remain valid together. |
| pgjdbc | eight application-facing classes, 276 cases, per commit | 275 JDBC connection, statement, result, batch and metadata cases pass; one is skipped upstream. It is not complete JDBC conformance. |
| Hibernate | 13 application tests, per commit | Hibernate 6 with the stock PostgreSQL dialect and JDBC simple-query mode covers schema, CRUD, relationships, HQL and transactions. |
| SQLAlchemy | 16 application tests, per commit | The custom Datahike dialect covers its documented SQLAlchemy and psycopg2 application flow. |
| asyncpg | 11 pinned upstream modules, per commit | The v0.30.0 manifest checks exactly 53 expected-failing owning IDs and rejects new failures, unexpected passes and missing cases. |
| node-postgres | 18 must-pass and four expected-failure files, per commit | The admitted JS client files pass and the known-gap files still run. |
pg_dump | COPY-format Pagila row-count round-trip, per commit | Compared table counts agree and the COPY steps complete. The schema replay has its own residuals. |
| Differential fuzz | fixed-seed samples, per commit | Samples agree on rows or SQLSTATE except for the listed divergences. |
| PostgreSQL regression corpus | pinned 18.6 inventory and admitted strict slices | Scheduled files are classified, and each strict slice points to a real test. |
| Odoo and Metabase | manual application probes | Independent application runs have their own recorded fixtures, results and age. |
| Datahike Server | version-pinned JAR and non-root container, per release | TLS/password authentication, abrupt client drops, graceful restart, durable catalog/data and post-restart writes work through the packaged server. |
This is behavioral coverage. We do not use source-line coverage as a release percentage: a SQL translator can execute every branch and still return the wrong rows, OIDs or SQLSTATE. Coverage grows by admitting observed behavior from PostgreSQL, drivers and applications into a strict repeatable gate.
to_char over dates).pg_dump: Pagila round-trip compares 21 tables, partitions included, with
no mismatch.Catalog migration and initial constraint validation commit atomically before a SQL handler becomes available. A failed validation leaves the database unchanged. Independent transaction predicates can enforce constraints without replacing one another.
Index backfill is synchronous and may require substantial memory for large attributes. Transaction-local permission to backfill does not change the database's persistent configuration. Uniqueness upgrades validate existing current values, including attributes that already have an index.
Native scalar NaN writes and exact per-row sequence evaluation order remain compatibility limitations. These features do not yet satisfy the beta-exit criteria.
The current compatibility residuals track the upstream PostgreSQL and client findings, the manual application evidence, and the gaps in the test setup. The dated campaign snapshot above is historical. Run the version-pinned Datahike Server artifact tests for a server release that updates the bundled adapter.
Fixes remove or close entries in beta-exit.edn; they must also promote the
relevant test from an expected-failure or manual observation into a gate.
The upstream campaign is pinned to the tag in campaign.edn. Materialize that
checkout without changing an existing ../postgres working tree:
bb pg-regress-setup
bb pg-regress-wave inventory
bb pg-regress-wave 1 discovery
The setup command writes under the ignored .internal/ directory by default,
refuses to rewrite an existing checkout and verifies both the exact tag and
the relevant source cleanliness. CI runs the setup and inventory validation on
every commit. Full discovery waves remain local because their useful output is
triage, not a single compatibility percentage.
Can you improve this documentation?Edit on GitHub
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |