model-writtenrun 7276 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Dean Rasheed submitted #1 after work on MERGE RETURNING exposed missing SPI_OK_TD_REGISTER and SPI_OK_MERGE cases in SPI_result_code_string(), alongside missing documentation for the MERGE status.
- Dean reported successful testing in #1, considered a regression test unnecessary, and proposed backpatching the longstanding SPI_OK_TD_REGISTER omission to all supported branches.
- Tom Lane found an additional missing SPI_OK_MERGE case in pltcl_process_SPI_result() in #2, and Dean confirmed in #3 that he had independently found the same omission.
- Dean committed d0460a31de, combining the unchanged SPI code and documentation from #1 with the PL/Tcl patch posted as #528537 in thread #47487, fixing an error when executing MERGE from PL/Tcl and crediting Tom's review.
- Dean confirmed that the fixes had been pushed in #4; the change was backpatched to supported branches, with branches before PostgreSQL 15 receiving only the SPI_OK_TD_REGISTER fix, leaving no outstanding work in the thread.