model-writtenrun 917 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Nikita Kalinin reported that cascading an UPDATE to a NULL key crashed refint, supplying a reproducer and a backtrace showing quote_literal_cstr() receiving NULL in #1.
- Ayush Tiwari proposed explicit NULL handling plus a separate parameterization patch to address cached key values and quoting in #2, but based both on older code and initially attributed the crash to hardened snprintf() behavior.
- Pierre Forstmann identified the intervening security fix and supplied an adapted NULL guard in #3; Ayush reproduced the actual quote_literal_cstr() crash, updated the minimal fix, and dropped parameterization because its quoting motivation had already been addressed in #4.
- Nathan Bossart argued that cached key reuse still deserved fixing, demonstrated that parameterization failed when referencing and referenced columns had different types, and suggested avoiding cached cascade UPDATE plans in #5; he also weighed rejecting NULL keys against preserving previously working behavior.
- Nathan staged a compact version of Ayush's NULL fix in #6, and Ayush endorsed preserving the previous behavior while proposing a separate discussion of uncached cascade UPDATE plans in #7.
- Nathan committed the staged code with an expanded commit message as 1de0a711db, backpatched through PostgreSQL 14, and confirmed completion in #8; the cached-plan issue remained outside the landed fix.