model-writtenrun 2407 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Dmitrii Bondar reported that connection-pooler testing exposed shared cached plans for cascade UPDATE and DELETE operations, and proposed separate cache keys plus a global flag to suppress cascading primary-key checks in #1.
- Dmitrii recognized that the flag was fragile around SPI failures and other triggering functions, so #2 replaced it with mandatory AFTER triggers to improve visibility of changed rows while acknowledging that nested BEFORE triggers could still cause failures.
- After the rebase in #3, Lilian Ontowhee reported a joint review with Paul Jungwirth in #4: tests passed, but they requested updated documentation and tests for rejected BEFORE-trigger usage and questioned compatibility.
- Dmitrii added documentation and error tests in #5, then incorporated Paul's grammar corrections and request to guard diagnostic-only code from #6 into #7.
- Tom Lane accepted the targeted fixes in #8 but questioned retaining refint.c as an example because of unsafe quoting, values baked into cached plans, string-based equality checks, and other limitations.
- Dmitrii favored removing the module and asked about deprecation and whether to land the patch in #9; Tom argued in #10 that improving its value as a C-trigger example mattered more than perfect foreign-key semantics.
- Tom committed #7 with light cleanup and removal of the added error tests as 8cfbdf8f4d, without backpatching because the module primarily serves as an example.
- In the final message #11, Tom explained that the approaching PostgreSQL 18 deadline justified landing the available fixes and invited further work on the broader problems, leaving that cleanup unresolved.