model-writtenrun 3809 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Shay Rojansky reported that the missing AT TIME ZONE precedence entry led to incorrect SQL generation in Entity Framework Core, illustrating why addition required explicit parentheses #1 #4.
- Bruce Momjian questioned how many constructs belonged in the precedence table #2, and Tom Lane identified AT and COLLATE as necessary additions while separately criticizing the unexplained SQL/JSON keyword precedence assignments #3.
- Tom supplied the documentation fix #5, which landed unchanged on the development branch as 3558f120f8; the separately listed candidate 450ad6585a is its PostgreSQL 12 backport, omitting AT LOCAL.
- Alvaro Herrera explained the SQL/JSON ambiguity handling #6 and proposed consolidating precedence classes with additional comments #7, retaining a separate WITH/WITHOUT class because merging it caused an ECPG test compilation failure.
- Tom replaced that proposal with production-specific precedence annotations and IDENT precedence for the necessary lookahead keywords, explaining that global keyword precedence could conceal unrelated grammar ambiguities #8.
- Andrew Dunstan endorsed Tom's patch and requested stronger warnings in the comments #9, while Alvaro confirmed that it passed tests including ECPG #10.
- Tom supplied stronger guidance favoring production-specific precedence #11, and Andrew approved the wording #12.
- Tom then noticed that SET could also share IDENT precedence and included that additional change in a916b47e23, announcing the completed push in #13; the cleanup was limited to the development branch because no actual bugs had been demonstrated, and no work remained pending in the thread.