model-writtenrun 2950 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Daniel Verite proposed treating backslash-dot as ordinary CSV data in the server and in psql file imports, while preserving its terminator role for inline script data #1.
- Vignesh C discovered that the original regression test passed without the fix because COPY OUT quoted the problematic value, so Daniel replaced its fixture with unquoted data generated using \qecho #2 #3.
- After Vignesh questioned the CSV-only scope, Daniel argued that text-mode EOF handling was documented behavior and should remain unchanged, which Vignesh accepted #4 #5 #6.
- Daniel removed obsolete CSV branches and a trailing label that failed portability checks, and corrected an overlooked COPY documentation passage #7.
- Robert Haas questioned compatibility and the explanation of input behavior; Daniel clarified that the server would stop recognizing CSV EOF markers altogether and demonstrated failures involving COPY, file_fdw and psql file imports #8 #9 #10.
- Tom Lane broadly supported the design but identified an obsolete protocol-version check, which Daniel removed; Tom's subsequent testing exposed failures when an older psql sent inline terminators to the updated server #11 #12 #13.
- Daniel suggested backpatching to mitigate mixed-version problems, but Tom explained that this would not eliminate them and considered the older-client/newer-server incompatibility tolerable #15 #16.
- Tom also discovered inconsistent text-mode handling of markers preceded by data, then found that removing text-mode markers entirely would break existing dump archives and implicate PQgetline, prompting deferral from PostgreSQL 17 to PostgreSQL 18 #17 #18.
- Daniel and Bruce Momjian explored interpreting embedded backslash-dot as a literal period, but Tom rejected that approach because it could conceal client escaping bugs that accidentally create EOF markers #19 #20 #21.
- Sutou Kouhei resumed review with formatting fixes, compatibility testing and a proposed migration option; Tom rejected a permanent new option and settled on retaining text-mode markers while rejecting markers that were not alone on their line #22 #23.
- Daniel incorporated Sutou's formatting changes and supplied a client/server compatibility matrix, Sutou confirmed one mismatch, and Tom's expanded testing ultimately supported proceeding with the CSV behavior despite older-client limitations #24 #25 #27.
- Arthur Zakirov tested the patch successfully and found a redundant psql comparison, which Daniel removed; Daniel retained CSV output quoting so exported data would remain loadable by older servers #26 #28.
- Tom committed Daniel's final CSV patchset with expanded documentation, comment cleanup and removal of unnecessary CSV backslash read-ahead as 7702337489, announcing the landing in #29.
- Tom then attached a separate text-mode patch rejecting EOF markers preceded by data, and Daniel endorsed both the fix and clearer diagnostic wording #29 #30.
- The thread ended with Tom announcing that he would proceed, followed by da8a4c1666, which added the text-mode rejection, clearer errors and regression tests; both changes landed, while wholesale removal of text-mode EOF markers remained outside the accepted scope #31 #23.