model-writtenrun 1890 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Dmitry reported concurrent MERGE updates producing duplicate counter values in #1, and Yugo Nagata reproduced the problem and proposed using the tupleid updated by table_tuple_lock() instead of TM_FailureData.ctid in #2.
- Dmitry confirmed that the patch fixed his test in #3; Dean Rasheed supplied isolation tests in #4, and Chao Li explained why TM_FailureData contents were unsafe after a successful lock in #5.
- Yugo incorporated Dean's tests in #6, after which Dean supplied #7 with the same correction for the moved-partition check, additional tests, and comments clarifying the table-lock API.
- Dean retained the apparently redundant moved-partition check in #7, and Yugo supported keeping it because other table access methods might need it in #8.
- Dean committed 6ede13d1b5 from #7, preserving its executor and API-comment changes while simplifying the tests to two sessions; his announcement in #9 explained that two updates in one competing session suffice and confirmed backpatching through PostgreSQL 15.
- Yugo thanked Dean for the commit, test improvements, and backpatching in #10, closing the thread with the fix landed and no outstanding work identified.