Evidence is anchored to the pg-datahike 0.1.431 release (PR #421) unless a narrower test or older application run is identified. A green gate checks its listed inputs and allowances. Coverage includes raw upstream discovery, strict SQL assertions, client tests, and actual application runs.
The pinned source is REL_18_6. The inventory classifies 231 scheduled files. The campaign has 90 files, including 12 whole-file strict gates and 58 strict slices after the varchar widening batch. The frozen 164-file discovery result uses an older adapter build and launcher. Fresh raw results need the tested revision, fixture receipt, and timeout profile for each file.
The 0.1.431 discovery refresh attempted all 164 files and collected 158
complete outputs. Of the 157 with a comparable frozen result,
normalized matches rose from 11 to 13. The new matches were enum.sql
and time.sql. Normalization removes diagnostic source positions.
alter_table, database, generated_stored, inherit, join, and
sqljson remained incomplete.
The targeted rerun on #421 recorded the following raw diagnostic counts against the preceding schema batch. A count can fall when a fix removes follow-on errors after an aborted transaction. Equal counts can still accompany different rows or diagnostics.
| File | PostgreSQL 18.6 | Previous adapter | #421 |
|---|---|---|---|
| identity | 52 | 133 | 125 |
| timetz | 10 | 14 | 10 |
| timestamptz | 34 | 60 | 50 |
The major migration residuals include partition attachment, ALTER DOMAIN, and views containing nested schema-qualified joins. Identity USER override, default sequence parameter behavior, and qualified trigger restoration have smaller independent SQL surfaces. The query residuals include historical time-zone parsing, view-definition rendering, specialized index operator classes, and OLD/NEW aliases in RETURNING. Campaign and SQL findings
| Surface | Verified scope | Gaps and limits to the evidence |
|---|---|---|
| asyncpg v0.30.0 | Eleven upstream modules. Of 203 selected owning test IDs, 118 pass cleanly, 53 are expected failures and 32 skip upstream. Four additional IDs are explicitly deselected. | See the cause breakdown below. Only the admitted IDs participate in the gate. |
| pgJDBC REL42.7.5 | Eight classes, 275 passing cases and one upstream skip. Covers text and binary results, prep, batches, and selected metadata. | Recheck ResultSetMetaData and DatabaseMetaData classes after the identity and domain fixes. |
| node-postgres 8.14.1 | 18 of the 22 selected files passed on #421, with four known-gap files. The two repeat unexpected passes are now strict. | The four file-level allowances can conceal other failures in those files. Row error metadata must preserve logical temporary table names. |
| Hibernate 6.4.4.Final | 13 app tests with the stock PostgreSQL dialect and pgJDBC 42.7.3 in simple-query mode. | The suite leaves extended-query Hibernate behavior unmeasured. |
| SQLAlchemy and psycopg2 | 16 workflows with the custom Datahike dialect. | The custom dialect overrides version, capability and reflection paths. The CI Python dependencies are unpinned. Stock dialect startup and reflection need a separate check. |
| Pagila and Chinook | Pagila checks COPY and row counts across 21 tables. Chinook has a separate strict per-row bidirectional gate. | Pagila tolerates schema errors. A local #421 profile disabled index backfill on its new database, causing 21 key and 36 downstream foreign-key errors. The precreated hosted database and standalone launcher enable backfill. The revised test template uses the same backfill setting. Qualified trigger references, nested joins in views, and partition attachment produced independent errors. |
| Odoo 19 | The archived manual base smoke passed 11 TestORM cases. The archived accounting boot reached module init and failed on the tax-tag UPDATE. | The current base runner accepts a floor of nine and reports the Odoo test-process exit code. The accounting query uses FOR-only substring. Posted invoice numbering relies on a partial UNIQUE index and needs its own concurrency test. |
| Metabase 0.60.2.4 | The archived manual app run completed initial sync and a native query. A #421 focused replay executed all 17 captured SQL statements against the seed, with 16 returning without error. | The current per-commit assertion checks statement routing. The seventeenth execution failed on missing pg_type.typtypmod in pgJDBC getColumns. The captured seed uses a Datahike-native reference and declares no SQL FK. A separate fixture with three declared SQL FKs returned the same three rows as stock PostgreSQL. The optional MBQL shell probes now fail on HTTP errors and missing result sets. Exact result-value assertions still need to be added. |
The archived full-application evidence is older than the client and SQL receipts. The published build for any new live run, and its exact seed, driver and launch profile, should accompany each result. Release gates
The sequence migration probes matched stock PostgreSQL 18.6, and the extracted Odoo tax-tag UPDATE returned the intended rows. The candidate also replayed all 17 captured Metabase statements. The JDBC column query returned five rows and the added focused JDBC test verified domain precision and scale. The Metabase replay used the captured seed and SQL. The captured FK query also has an assertion for a declared SQL foreign key.
A fresh Pagila restore using the production backfill setting matched row counts across all 21 tables. Its 42 statement errors, compared with 99 under the previous local fixture, still include qualified trigger references, nested view joins, partition attachment and other DDL. Backfill accounts for the 57 eliminated fixture errors.
Qualified trigger restoration remains open. Binding both the table and function qualifiers requires schema-aware routine resolution. In the current registry, a bare function name cannot distinguish that reference from a same-named routine declared in another schema.
A fresh Odoo 19 base run first needed the conventional postgres administrative database on the private test endpoint. With that fixture in place, Odoo stopped during base SQL initialization on ON DELETE SET NULL (SQLSTATE 0A000). Its TestORM cases were not reached. The prior 11-case report is historical. The manual harness now provisions that database.
The SET NULL follow-on passed database initialization. The next boot
failure was the information_schema.constraint_column_usage lookup in
ir_logging.init (SQLSTATE 42P01). The added view reports the referenced
table and columns of a foreign key, with the constraint's own schema.
Its key names follow the existing pg_constraint metadata, which still
synthesizes the names of some explicit PRIMARY KEY and UNIQUE constraints.
With both changes, the live boot advanced to converting
res_users.login from varchar(64) to unconstrained varchar. The ALTER
failed on the column's dependencies (SQLSTATE 0A000), before TestORM.
The PostgreSQL fixture verifies SET NULL on self-references and
cross-table references, child-row preservation, rollback and a NOT NULL
failure. The DELETE guard can return 40001 if a concurrent write
changes the database while the referential action is being prepared.
The targeted foreign_key.sql discovery run went from 857 adapter
diagnostics on 0.1.431 to 832, with 198 expected from stock and zero
internal failures. Partitioning, deferred constraints and several
referential action variants still affect the full file. ALTER restores
continue to admit existing ON UPDATE CASCADE declarations with
restrictive parent-key updates.
The adapter now widens a bounded varchar column by updating its typmod.
The Odoo login ALTER keeps the original column and unique key, accepts
longer values, and preserves the prior width in historical reads. The
strict PostgreSQL suite gained the alter_table.sql slice that widens a
varchar primary key in the transaction that creates it. A prepared JDBC
statement verifies that it sees the new descriptor.
Odoo's parenthesized res_device SELECT now creates a view. The captured
query produces the same rows as PostgreSQL 18.6 on a fixture covering
revocation, null-safe grouping, and tied activity times.
A fresh Odoo 19 base boot at commit 007e86391e14 passed both statements
and reached model-field reflection before TestORM. Odoo declares
UNIQUE (model, name) through ALTER TABLE on ir_model_fields. A later
INSERT ... ON CONFLICT (model, name) DO UPDATE failed with SQLSTATE
42P10. Odoo also caught two nonfatal errors creating device-log partial
indexes with WHERE revoked IS NOT TRUE.
| Area | IDs | Observed causes |
|---|---|---|
| Codecs | 25 | Binary interval and record output, composite and domain identity, enum arrays, ranges, extension setup, and isolated type cases. |
| Cache invalidation | 9 | Seven stop on an initial query before the ALTER. Two stop on the pool fixture's hard-coded postgres database. |
| Prepare | 6 | Decimal typing, EXPLAIN JSON, record decoding, named statement visibility from SQL, and invalidation ErrorResponse metadata. |
| Connect | 4 | External connection settings leaked into the upstream native primary/standby test fixture. |
| Introspection | 4 | Two extension fixtures, large inherited catalogs, and cache-bust parameter typing. |
| Cursor, exceptions, execute | 5 | SQL MOVE against wire portals, missing error position, blank SQL function body, and abrupt-close cancellation. |
The exact manifest fell from 56 owning IDs at #369 to 53 at #414 and remained at 53 through #421. Pytest's event totals also count subtests. Pool lifecycle and COPY are the largest unselected application-facing modules, with 50 and 24 source-defined methods. Authentication and TLS need separately provisioned evidence. Manifest and runner
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 |