model-writtenrun 5085 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Daniel Verite reported that PostgreSQL 15's multiple-result output repeatedly reopened \g destinations, overwriting earlier results, and proposed managing the stream in ExecQueryAndProcessResults; his second patch allowed COPY under \watch to eliminate an infinite loop and support program-friendly output #1.
- Tom Lane wanted the behavior corrected before PostgreSQL 15.0 could establish an unwanted compatibility expectation #2, then committed both fixes with output-routing, flushing, and error-handling corrections as 4a79fd1a75; he explicitly deferred regression coverage because of release time pressure #3.
- Daniel proposed writing output files and reading them back for SQL regression comparisons #4, while Tom objected to filesystem side effects in psql.sql and suggested TAP tests #5; Daniel nevertheless submitted SQL tests covering \g, \o, COPY output, and command-status routing #6.
- Corey Huinker supported the SQL tests, suggested comments explaining their intentions and unfamiliar constructs, and asked whether additional COPY options needed coverage #7.
- Fabien COELHO supplied an alternative TAP patch testing single-command and multiple-command \g output, including suppression of earlier results with SHOW_ALL_RESULTS disabled #8.
- Daniel concluded that the tests should focus on output destinations, leaving unrelated COPY options to existing tests, and moved the testing work to a follow-up thread and CommitFest entry; the functional fixes had landed, but neither attached test approach was shown committed in this thread #9.