model-writtenrun 6394 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Yaoguang Chen reported a PostgreSQL 14beta1 assertion failure with a query using GROUP BY DISTINCT and grouping sets in #1.
- David Rowley diagnosed an accessor that incorrectly required a List where the element was an IntList and attached a one-line fix using linitial() in #2.
- David Rowley explained that existing tests escaped the assertion because sorting placed an empty grouping set first, which the accessor accepted as NULL, and supplied a query adjustment exposing the failure in #3.
- Richard Guo supplied another compact reproducer and suggested adding regression coverage in #4, but no additional test was included in the committed patch.
- With the beta2 deadline approaching, David Rowley committed #2 unchanged as 8d29d45d9b and announced plans to discuss additional testing separately in #5.
- Tom Lane questioned whether the diagnosis implied further list-handling errors in #6, but withdrew that objection in #8 after David Rowley pointed him to the existing explanation in #7; the fix remained landed, with additional testing deferred.