model-writtenrun 5542 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Wang Ke reported an XMLTABLE query that triggered an assertion failure in PostgreSQL 14.2 and HEAD because its alias list exceeded the available columns #1.
- Alvaro Herrera reduced the reproducer and supplied an inline PostgreSQL 14 fix that rejected excess aliases, noting that development versions also needed JSON_TABLE support #2.
- Tom Lane endorsed the fix, requested ERRCODE_INVALID_COLUMN_REFERENCE, and demonstrated that join aliases used inconsistent error handling, proposing that their check move into addRangeTableEntryForJoin #3.
- Alvaro Herrera incorporated those suggestions into the sole attached patchset, added regression coverage, and retained the apparently unreachable VALUES-alias check because direct VALUES aliases might be useful #4.
- Richard Guo confirmed that VALUES aliases currently belong to surrounding subqueries and suggested removing the unreachable check, but that cleanup was not included in the patch #5.
- After the final thread message, Alvaro Herrera committed #4 unchanged apart from rebase metadata as 0fbf011200, with backports to all stable branches; the proposed VALUES cleanup remained outside the landed change.