You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
oracle pg_regress creates the regression database over the Oracle port, breaking NO_LOCALE/ENCODING modules #2127
A module that sets NO_LOCALE or ENCODING cannot run under make oracle-check: the
test database is created through the Oracle port, where identifiers are folded to
upper case, so the harness creates CONTRIB_REGRESSION and then fails to connect to contrib_regression. Every test in the module reports failure without running a
single statement.
$ make -C src/oracle_test/modules/test_oat_hooks oracle-check # with ORA_REGRESS set
# initializing database system by running initdb
# using temp instance on port 58929 with PID ...
psql: error: connection to server on socket "/tmp/pg_regress-XXXX/.s.PGSQL.58929" failed: FATAL: database "contrib_regression" does not exist
get ivorysql.port failed
not ok 1 - test_oat_hooks
# (test process exited with exit code 2)
Same for test_extensions. The leftover temp instance confirms the name:
regress/pg_regress.c reuses INITDB_TEMPLATE only when the module does not set NO_LOCALE/ENCODING (if (initdb_template_dir == NULL || nolocale || ...));
otherwise it runs its own initdb -m oraclewithout-C normal.
On that path, PGPORT is already the Oracle port (oraPort = port + 1, set in the BEGIN - SQL oracle_test block of pg_regress.c), so create_database() runs with compatible_mode = oracle and the quoted name is upper-cased.
while a cluster created with initdb -C normal (what the Makefile template uses)
keeps the case through the Oracle port, which is why other modules are unaffected.
Proposal
Create the regression database through the normal port, or pass -C normal to the initdb that pg_regress runs itself, so that the created name matches the name the
tests connect to.
Activity
NotHimmel commentedon Sep 20, 2026
Thanks for reporting this issue.
Wang1rrr commentedon Sep 21, 2026
/assign