model-writtenrun 4715 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Dean Rasheed reported that a MERGE moving one row between partitions returned MERGE 2 because ExecUpdateAct() and ExecMergeMatched() both incremented the processed-row count #1.
- Dean attached a one-line fix passing canSetTag = false to ExecUpdateAct(), leaving ExecMergeMatched() responsible for counting affected rows #1.
- Alvaro Herrera endorsed the proposed fix as sensible #2.
- Dean committed the attached executor change with an added regression test checking the affected-row count, producing 80a48e0f21.
- Dean closed the thread by explaining that the regression test would protect against future refactoring and confirming that the fix had been pushed and back-patched to PostgreSQL 15 #3 80a48e0f21.