Skip to content

PostgreSQL: distinct list items, with 437 cases recorded on 18.6 - #42

Merged
kvlonge merged 6 commits into
mainfrom
postgres-distinct-list-names
Dec 6, 2026
Merged

kvlonge merged 6 commits into
mainfrom
postgres-distinct-list-names

Conversation

@kvlonge

@kvlonge kvlonge commented Dec 6, 2026 •

Copy link
Copy Markdown
Contributor

Why

PostgreSQL accept cases repeated a named list item (TO v1 , v1, SET c1 = 1 , c1 = 1, ENUM ( 'm' , 'm' )). Some were credited only because PostgreSQL refused a missing object first, or refused the duplicate itself. The case build now writes distinct items, so these cases test the list syntax honestly.

Changes

  • syntax/postgres/cases: the cases whose lists repeated a named item are replaced by cases that name distinct items, in three rounds: 346, then 74, then 17 (with ALTER TYPE lists now continued by <attribute_name>).
  • syntax/postgres/receipts: 437 receipts appended, recorded on the pinned postgres:18.6 image (sha256:bd5dfa49…) with the raw parser (pg_query 18.1.0 / libpg_query 18.6). Existing lines are unchanged.

Verification

  • A repeat run of each round on a fresh container matched (only the per-run capture hash differs).
  • No new receipt is refused on a duplicate name.
  • The builder's --check against this tree: 0 stale. syntax-coverage summary: 0 problems; 23,711/23,711 obligations satisfied.

Builder: 902f1c9979c538ca67b0155637ca08ef1e3eb952

The case build now gives a second list item, and the second item of the
WITH, WINDOW, RETURNING and ordered-set aggregate readings, distinct
names. 346 cases change (302 accept, 44 reject); each was recorded on
the pinned postgres:18.6 image with the raw parser, and a repeat run
matched. No accept case is refused on a duplicate name.

kvlonge commented Dec 6, 2026

Copy link
Copy Markdown
Contributor Author

Fixes-only check at e486ff1 for append-only: fixed.

  • Every receipts file keeps its base lines byte-identical, and the 346 new receipts are appended: the diff is +346, -0. The pin check's _move_problems returns no problems from 9d3002b or from main.
  • The cases files are unchanged from f82f216.

The SQLBabel side is still in review: 32 accept cases still repeat a named list item. I've sent the details to the PR's author.

@kvlonge kvlonge changed the title PostgreSQL: distinct list items, with 346 cases recorded on 18.6 PostgreSQL: distinct list items, with 437 cases recorded on 18.6 Dec 6, 2026
@kvlonge kvlonge closed this Dec 6, 2026
@kvlonge kvlonge reopened this Dec 6, 2026
@kvlonge
kvlonge merged commit 6178ce4 into main Dec 6, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant