model-writtenrun 6343 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Alexander Pyhalov reported a backend crash triggered by an incorrect DELETE trigger referencing NEW instead of OLD, attaching a reproducer and a backtrace identifying find_modifytable_subplan in #1.
- The report showed a childless Result plan, and b9734c13f1 explains that a provably false UPDATE or DELETE condition invalidated the assumption that every Result beneath ModifyTable has a child.
- Tom Lane added the missing null check in b9734c13f1, implementing the fix from the report rather than landing the reproducer attachment from #1.
- For regression coverage, b9734c13f1 added EXPLAIN tests for ordinary DELETE and DELETE WHERE false, with corresponding expected output.
- Tom Lane confirmed the fix and thanked Alexander Pyhalov in #2, closing the thread with the reported crash addressed and no outstanding patch revisions.