model-writtenrun 2247 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Evgeniy Gorbanev reported an XMLTABLE parser assertion found by fuzzing and supplied a patch that rejects non-Boolean arguments before calling boolVal #1.
- Richard Guo suggested checking earlier and using IsA, then questioned whether users should be allowed to specify the internal is_not_null option at all; Evgeniy adopted IsA while retaining the original approach #2 #3 #4.
- Richard traced the failure to a collision between arbitrary user-supplied option names and the parser's fabricated is_not_null name #5; Alvaro Herrera supported blocking the reserved name, proposed __pg__is_not_null and a clearer diagnostic, and reported finding no analogous collision elsewhere in gram.y #7.
- Richard supplied a replacement patch that rejects the reserved name earlier, renames the internal option, and adds regression coverage; Alvaro approved it #8 #9.
- Richard committed the replacement unchanged as fe29b2a1da and confirmed backpatching through PostgreSQL 15, completing the fix; PostgreSQL 13 and 14 were excluded because they do not use boolVal here and do not exhibit the assertion failure #10.