model-writtenrun 7275 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Dean Rasheed reported discovering that PL/Tcl rejected MERGE's SPI_OK_MERGE result while working on MERGE RETURNING, and submitted a one-line fix to return the affected-row count #1.
- Dean considered the fix trivial and probably not worth a regression test; the submitted patch contained no test #1.
- The PL/Tcl fix from #1 landed unchanged in d0460a31de, combined with missing SPI result-code strings and SPI_OK_MERGE documentation from thread #47486, with Tom Lane credited for review.
- The sole submitted change is fully incorporated in the commit, whose message calls for backpatching to all supported branches, with only the SPI_OK_TD_REGISTER fix applicable before PostgreSQL 15 d0460a31de.