model-writtenrun 9023 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Mark Dilger submitted a defensive check for an ignored SPI_execute() return value in query_to_oid_list(), with no known live failure from its existing callers #1.
- Michael Paquier recommended accepting only SPI_OK_SELECT because the XML code uses SELECT queries, tightening Mark's proposed check for negative results #2.
- Pavel Stehule questioned SPI's mixture of return codes and exceptions while accepting the local fix; Michael defended compatibility with existing callers, and Alvaro Herrera favored return codes where SPI can clean up and leave recovery decisions to callers #3 #4 #5 #6.
- Mark explained that the helper's query argument had motivated his broader success check, but expressed no strong preference; he also separated this fix from a planned SPI error-handling redesign, which Pavel accepted #7 #8 #9.
- Michael committed #1 as 3feb6ace7c, requiring SPI_OK_SELECT and adding the query to the error message; he applied it only to HEAD and explained that future callers needing other query types should reconsider the check #10.
- After the fix landed, Mark proposed retaining status codes for errors possible with valid C callers while replacing programmer-error statuses with exceptions, and Alvaro agreed that this addressed his concern; the broader redesign remained discussion without another attached patch #11 #12.