Repository navigation
Conversation
SET pgcolumnar.objstore_s3_addressing accepted any string. The object-store module uses virtual-host addressing only when the value is "virtual", so a typo such as 'virtaul', a padded 'VIRTUAL ' or '' was accepted, SHOW echoed it back, and every request went out path-style without a word. The setting is now an enum GUC with the values path and virtual, like pgcolumnar.compression. PostgreSQL refuses any other value at SET and ALTER SYSTEM with "invalid value for parameter" (22023), and case still does not matter. The module reads the setting by name through GetConfigOption, which returns the enum's text name, so the module and the parallel export workers that receive the caller's value are unchanged. A bad value in postgresql.conf now draws a WARNING at start and the server uses path, which is what the module did with it before. Tests: four checks in test/objstore_addressing.sh and their twins in test_objstore_addressing.py. The three refusals were red on main's code on PG18; the check that path, virtual and VIRTUAL are still taken was green on both. Ledger: the green logs of PG15 to PG19 and the PG18 red log are merged. Four rows are added, three dated by the red log, so checks_never_observed_red moves from 4894 to 4895. Ledger-census: rows=9664 never=4895 dated=4769 Co-Authored-By: Claude Opus 5.5 <[email protected]>
ubuntu-latest moved from ubuntu-24.04 to ubuntu-26.04 between 2026-11-12 and 2026-11-22. Since then `sudo -E` no longer carries GITHUB_BASE_REF into run_all_versions.sh. The ledger gate then cannot find the PR's base and refuses: "no trustworthy prior ceiling: GITHUB_BASE_REF is unset". Every PR fails suites (PG 17) and suites (PG 18) although every suite passes (#2056, and every PR from #2127 to #2159). The step now names the variable in the env list, so it reaches the gate whatever sudo preserves. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The suites (PG 17) and suites (PG 18) jobs fail on every PR with "ledger integrity failure: no trustworthy prior ceiling: GITHUB_BASE_REF is unset", because ubuntu-latest moved to 26.04 and sudo -E no longer carries GITHUB_BASE_REF. PR #2162 (845c83e) passes it by name and is green, but is not merged into main yet. Merging it here lets this PR's suites jobs run the ledger gate. Git merged CHANGELOG.md without conflicts and kept both entries. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
I pushed 6fa65f5 to this branch: it merges Why the mergeThe run on 85aa86b failed only The cause: CI failures I foundI checked the logs of both failed jobs (138207812301 and 138207812185) for any other failure. There was none. Every one of the 13 other checks passed.
I made no fix commit, because nothing besides the ledger refusal had failed. Local checks on the merge, PG 18.6
That local matrix run still ended red, for reasons that come from my sandbox, not from this PR:
Still unverified: the new CI run on 6fa65f5. Its result will show on this PR. 🤖 Generated with Claude Code |
Fixes #2091.
Problem
SET pgcolumnar.objstore_s3_addressingaccepted any string. A typo such as'virtaul', a padded'VIRTUAL 'or''was taken without an error, andSHOWechoed it back. Every request then went out path-style. Against AWS this shows up later as a redirect or a signature error, not as a refused SET.docs/configuration.mddescribes the setting aspathorvirtual.Cause
_PG_initdefined the setting withDefineCustomStringVariableand no check hook. The object-store module uses virtual-host addressing only whenpg_strcasecmp(addr, "virtual") == 0, so it treated every other value aspath.The fix
pathandvirtual, likepgcolumnar.compression. PostgreSQL refuses any other value atSETandALTER SYSTEMwithinvalid value for parameter(SQLSTATE 22023) and the hintAvailable values: path, virtual.Case still does not matter.int. Nothing read it: the module reads the setting by name throughGetConfigOption, which returns the enum's text name, soobjstore/columnar_objstore_module.cis unchanged. So iscolumnar_parallel_export.c, which passes the caller's value to its workers by name.postgresql.confnow draws aWARNINGat start, and the server usespath. That is what the module did with such a value before. I checked this on the PG18 sandbox:SHOWprintedpathand the log readWARNING: invalid value for parameter "pgcolumnar.objstore_s3_addressing": "virtaul".docs/configuration.mdgives the type asenum. A CHANGELOG entry is under Fixed.Red, on main's code
PG18, the new tests on d52f6e8's C code.
test/objstore_addressing.sh:test_objstore_addressing.py -k addressing_setting:The fourth check passes on main too. It pins that
path,virtualandVIRTUALare still taken.Green
PG18, with the fix:
makeaftermake cleangave nowarning:lines on PG18 or PG17.Suites run
On the final code:
objstore_addressing.shparallel_export_parquet.shobjstore_listing.shobjstore_allowlist.shobjstore_s3_read.shsettings_reference.shdocs_style.shpytest,
test_objstore_addressing.py,test_parallel_export_parquet.py,test_objstore_listing.py,test_objstore_allowlist.py,test_objstore_s3_read.pyandtest_settings_reference.pywith-n 4:The 10 unrun checks are the real-S3 integration arms, which decline without their environment variables, as on main.
Guard half, as the README runs it (PG18):
accounting: 2440 pass + 0 fail + 0 unrun = 2440,894 passed.compare_to_bash.py ../objstore_addressing.sh test_objstore_addressing.py:literal matches: 32 | template matches: 0 | missing: 0.Registries:
expected_tests.txt:cluster_tests5376 to 5380, collected (5380 tests collected).guard_testsstays 894.TESTS.md: the two new tests in section 326.check_ledger.tsv: four rows from the green logs of PG15 to PG19 and the PG18 red log, merged with--reds-are-real.checks_never_observed_red4894 to 4895.census-commits: 0 refused.expected_unrunnable.txt: unchanged, because no new test declines.Not verified
objstore_addressing.sh.🤖 Generated with Claude Code