model-writtenrun 5714 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Michael Paquier reported that pg_stop_backup_v2 was incorrectly declared set-returning despite returning only one record, and proposed removing its unnecessary tuplestore and set-returning checks in #1.
- Kyotaro Horiguchi identified an unused variable and recommended obtaining the tuple descriptor through get_call_result_type() in #2; Michael incorporated both suggestions and consistently applied a column-count macro in #3.
- Aleksander Alekseev questioned the function-local macro in #4, Robert Haas defended its maintainability in #5, and Tom Lane advocated adding #undef in #6, which Aleksander supported in #7.
- Julien Rouhaud showed that comparable macros generally lacked #undef in #8, while Chapman Flack proposed deriving one array's length from the other in #9, an approach David Steele also supported in #10.
- Chapman also asked whether the fix should join a separate backup-function rework in #9; Michael chose the existing macro style in #11 and argued for fixing the current defect independently because any later rebase would be trivial in #12.
- Michael committed #3 as 62ce0c758d, adding only a catalog-version bump and a comment spelling correction while retaining the macro without #undef.
- After the commit, Robert questioned the need for #undef in #13, Tom defended its scope-documenting purpose in #14, and Chapman renewed the lengthof alternative in #15, which Tom opposed because named constants better document intent in #16.
- The functional fix remained landed while the style discussion ended without another patch: Michael favored retaining the established convention unless a convincing project-wide replacement emerged in #17, and Kyotaro considered the specific macro name sufficient to avoid misuse in #18.