model-writtenrun 5555 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Wang Ke reported a PostgreSQL 14.2 crash in transformValuesClause(), supplying a reproducer and an AddressSanitizer trace in #1.
- Masahiko Sawada reproduced the crash on HEAD, reduced it to VALUES expanding a zero-column relation, and asked whether that case should raise an error in #2.
- Tom Lane argued that zero-column VALUES should work because zero-column relations are supported, and supplied #3, which initializes empty row lists and removes special handling of the first column.
- Jonathan S. Katz confirmed the fix and reviewed the code in #4; Tom then supplied a clearer LATERAL example, explained why he did not classify the crash as a security issue, and chose to include the fix in that day's releases in #5.
- Masahiko confirmed the fix and successful regression tests in #6, and Tom committed fe20afaee8 with the parser changes from #3 unchanged and an added regression test, backpatching the fix to all supported branches.
- Tom announced the landing in #7 and deferred direct syntax support for zero-column VALUES because it was not a crash fix and the release deadline was pressing.
- After the commit, Alvaro Herrera explained why eliminating the special first-column case fixed the bug and approved the approach in #8; Tom welcomed the additional review in #9, leaving the crash resolved and broader syntax support for future work.