model-writtenrun 7271 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Alexander Lakhin reported that concurrent MERGE updates and deletes could crash PostgreSQL 15.2 because ExecMergeMatched() inspected an uninitialized cpUpdateRetrySlot, providing a reproducer and diagnostic traces #1.
- Alvaro Herrera proposed resetting cpUpdateRetrySlot for each tuple #2, and Alexander confirmed that this fixed the reported failure #3.
- Dean Rasheed initially questioned whether initialization belonged inside ExecMergeMatched() #4, then concluded that the suspected retry sequence was prevented by row locking and proposed checking cpUpdateRetrySlot only for UPDATE actions #5.
- Alvaro adopted Dean's guard, updated its explanation, and removed the nearby XXX question #6; Dean tested the revision successfully but also identified inconsistent handling of concurrent deletion during cross-partition updates #7.
- Alvaro committed the revised patch with only comment wrapping changes as fd923b5de9 and confirmed the landing while questioning whether the remaining inconsistency was itself a bug #8.
- Dean subsequently landed 9321c79c86 from the later patch series in thread #71742, which delegates concurrent-change handling to MERGE, removes the retry-slot machinery, and expands isolation coverage; his final message confirms that this also resolves the outstanding issue here, leaving no pending fix in this thread #9.