Repository navigation
Description
Summary
Most modules under src/oracle_test/modules/ are hand-maintained copies of their
src/test/modules/ counterparts, and several of those copies have drifted. A module
is only exercised in Oracle mode when its Makefile lists ORA_REGRESS, so the stale
copies are currently silently skipped by make oracle-check-world — which is why
hs-liuxh's question in #1419 ("many modules are still missing ORA_REGRESS") cannot
be answered by simply adding the variable: adding it makes the suite fail.
Measured state (master 63fb0bfe615, debug/cassert build, --enable-injection-points)
Adding ORA_REGRESS = $(REGRESS) to the ten remaining modules fails 10 of 10.
make check (PG mode) vs make oracle-check after adding the variable:
| module | make check |
oracle-check |
cause |
|---|---|---|---|
| dummy_index_am, gin, typcache | FAIL | FAIL | copy differs from src/test/modules/ only in psql header padding and a trailing blank line |
| nbtree, test_dsm_registry, test_extensions, test_oat_hooks, test_pg_dump | FAIL | FAIL | copy is a stale fork: missing statements, older error texts, / terminators present in only one of the two copies (test_dsm_registry.c is out of date as well) |
| test_lwlock_tranches | PASS | FAIL | oracle-check does not pass the module's --temp-config (see below) |
| spgist_name_ops | PASS | FAIL | real mode difference: \d+ prints pg_catalog.int4 in Oracle mode |
Two points worth noting:
dummy_index_am,ginandtypcachefailmake checktoo, so the drift is not an
Oracle-mode problem — the copies are simply wrong today.test_lwlock_tranchesneedsORACLE_REGRESS_OPTS = --temp-config ...because
oracle-checkreadsORACLE_REGRESS_OPTS, notREGRESS_OPTS, and that config is
what preloads the extension.
Proposal
- Re-sync the stale copies, keeping the IvorySQL-specific adjustments (the
/
statement terminators and the Oracle expected output), then list them in
ORA_REGRESS. - Decide on the two mode differences:
spgist_name_ops(type qualification in\d+)
andnbtree(theinjection_pointsmachinery does not fire in Oracle mode, the
same root cause as theinjection_pointsexclusion in oracle_test: enable compatible module tests #1419).
The whitespace-only copies plus test_lwlock_tranches are fixed in a follow-up PR that
references this issue; the remaining five need the copies re-synced first.
Activity
123123213weqw commentedon Sep 20, 2026
Correction plus a deeper root cause, after testing the module copies on
63fb0bfe615(debug/cassert build).Correction: the
/markers in the oracle_test copies are not stale leftovers. They are required. In Oracle mode psql reads and echoes ahead until it meets a/(or EOF) and only then executes the batch, so results andNOTICEs land after the echoes that follow them. Adding/after a statement restores the usual interleaving:Same input with a
/after each statement: echo, result,/, echo, result — normal order. The trigger is not the file size but the presence of routine/type DDL (CREATE FUNCTIONetc.), which is why thesrc/oracle_test/regress/expected/*.outfiles are not interchangeable withsrc/test/regress/expected/*.out: they were generated with this batching.create_index.outshows it plainly —NOTICE: relation "onek_unique1" already exists, skippingsits after the echo of the next statement.So for the module copies the rule is: the statement text has to come from
src/test/modules(that is the part that drifts), but the/terminators and the expected output have to stay Oracle-mode generated. Copying thesrc/testfiles wholesale, as my earlier table implied, throws away the/and with it the expected-output contract.What that changes in the table above. Five modules still cannot be listed, but for different reasons than "stale copies":
nbtree— the diff is dominated by displaced output (theinjection_points_set_localresult appears ~70 lines later), so it needs Oracle-generated expected output; on top of that the run ends withERROR: invalid transaction terminationfromwait_prunable()'sROLLBACK, which is a real Oracle-mode difference.test_pg_dump— same displacement (pg_init_privsblocks land at the end of the file), plus type names render aspg_catalog.int2, like thepg_catalog.int4inspgist_name_ops.spgist_name_ops— its copy is not stale at all: it matchessrc/test/modulesand passesmake check; only thepg_catalog.int4qualification differs.test_extensions,test_oat_hooks— blocked by the harness issue oracle pg_regress creates the regression database over the Oracle port, breaking NO_LOCALE/ENCODING modules #2127, they never reach the SQL.What is enabled instead. A follow-up PR (#2128) takes the five copies whose content can be synced without losing anything —
dummy_index_am,gin,typcache,test_lwlock_tranches(which additionally neededORACLE_REGRESS_OPTSfor its temp config) andtest_dsm_registry(whose.c, extension script, test and expected output had all drifted). All five pass bothmake checkandmake oracle-checkat63fb0bfe615, anddummy_index_am/test_dsm_registryalso get their meson manifests updated from the "no Oracle regress registration" comment to a real registration.The remaining question for the maintainers is the one this issue was opened for: whether regenerating Oracle-mode expected output for
nbtree/test_pg_dump(and a decision on thepg_catalog.*qualification forspgist_name_ops) is wanted, or whether those stay out ofORA_REGRESSwith a comment like theinjection_pointsone.NotHimmel commentedon Sep 20, 2026
Thanks for reporting this issue.