model-writtenrun 7269 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Alexander Lakhin reported a reproducible MERGE crash under concurrent UPDATE with a BEFORE ROW UPDATE trigger, tracing it to missing ordinary UPDATE projection information #1.
- Dean Rasheed confirmed the crash and proposed passing the current MergeActionState through the trigger API, while raising concerns about changing public signatures in stable branches and suggesting removal of redundant projection callbacks #2.
- Alvaro Herrera explained that the callbacks originated when MERGE occupied a separate file and supported consolidating them now that nodeModifyTable.c contained MERGE #3; Dean implemented that cleanup, but isolation tests exposed skipped WHEN-condition rechecks and incorrect action selection #4.
- Dean replaced the initial projection fix with propagation of concurrency results from trigger and cross-partition operations to MERGE, allowing MERGE to perform its own rechecks, removing redundant retry machinery, and expanding isolation coverage; he also supplied a PostgreSQL 15 variant preserving trigger API compatibility #5.
- Dean added local ownership and freeing of recheckIndexes in ExecUpdateEpilogue(), then identified a separate command-tag counting bug when BEFORE ROW triggers suppressed actions and reserved it for a follow-on fix #6.
- Dean committed the concurrency redesign and cleanup as 9321c79c86, consistent with the final submission #6, although its missing attachments prevent exact comparison; related investigation came from thread #71719, whose earlier patchsets do not supersede this thread's final implementation.
- Dean separately committed the trigger-suppressed action counting fix with FOUND and ROW_COUNT regression coverage as 7b14e20b12; both fixes were backpatched to PostgreSQL 15, and his final message confirmed both had been pushed, leaving no outstanding work stated in the thread #7.