model-writtenrun 1740 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Dmitry Fomin reported a reproducible ON UPDATE CASCADE crash involving partition layouts with dropped-column differences in #1, and David Rowley traced it to a missing root ResultRelInfo that suppressed tuple translation in #2.
- David identified reuse of a rootless cached ResultRelInfo and posted an exploratory patch that overwrote its root pointer in #3; Amit Langote instead proposed keeping cached entries unchanged and restricting their reuse, with regression tests, in #5.
- David pointed out that allowing any cached entry when the requested root was NULL remained unsafe in #6, leading Amit to require exact root equality for the trigger-target cache in #7.
- David demonstrated that assertions were insufficient for the other two caches and applied exact runtime matching to all three lists in #8; Amit confirmed a multiple-ModifyTable failure scenario and added a CTE regression case in #9.
- The authors' test suites had diverged, so David retained his simpler table setup and incorporated Amit's CTE case in #10, establishing the final version while raising a question about EXPLAIN trigger reporting.
- Amit supplied separate EXPLAIN instrumentation and reported that the extra child entries lacked trigger instrumentation, so they would not add output rows, in #11; David accepted that conclusion and kept the caching explanation inside the function as an implementation detail in #12.
- Amit endorsed the final patch in #13 and explained why replacing the initiating INSERT trigger event with a parent cross-partition UPDATE event was not a valid alternative: foreign-key-side triggers require heap relations.
- David committed the jointly authored patch from #10 with an identical code-and-test diff as 39dcfda2d2, backpatched through PostgreSQL 15, and announced completion in #14; the EXPLAIN diagnostic attachment was not included.
- The thread closed with Amit's acknowledgment in #15, with the crash fix landed and no further requested changes outstanding.