Sep - Oct 2024

2 commits
Reject a copy EOF marker that has data ahead of it on the same line.
1 Oct 2024Tom Lanemaster18beta1REL_19_STABLE18beta1REL_18_STABLE18beta1
LLM analysis, 100% suremodified before commitlight changesfrom patchset #291 of 1 reviewer saw the final version

Preserves the exact preceding-data rejection logic proposed in #29, changes the error wording to 'end-of-copy marker is not alone on its line', removes redundant braces, and adds regression cases for data before and after the marker. Daniel endorsed the behavior and wording in #30.

  • Daniel Veritesaw the final versionLLM analysis, 100% sureDaniel endorsed the attached text-mode fix, illustrated the existing data-loss behavior, and approved the clearer error wording before commit #30.
Do not treat \. as an EOF marker in CSV mode for COPY IN.
30 Sep 2024Tom Lanemaster18beta1REL_19_STABLE18beta1REL_18_STABLE18beta1
LLM analysis, 99% suremodified before commitmoderate changesfrom patchset #281 of 5 reviewers saw the final version

Retains the CSV parsing design, psql logic and regression tests from #28, with expanded documentation and comments across libpq.sgml, protocol.sgml, copy.sgml and copyto.c. It also changes CopyReadLineText's CSV read-ahead condition to stop fetching ahead for backslashes, a local logic simplification beyond the documentation edits reported in #29.

  • vignesh Csaw an earlier versionLLM analysis, 96% sureVignesh found that the original regression test passed without the patch and subsequently examined and accepted the CSV-only scope, before later parser changes #2 #4 #6.
  • Robert Haassaw an earlier versionLLM analysis, 96% sureRobert reviewed compatibility, documentation and parser semantics in #8 and is explicitly credited by 7702337489, although the final parser read-ahead change followed his review.
  • Sutou Kouheisaw an earlier versionLLM analysis, 96% sureSutou supplied formatting corrections that Daniel adopted and confirmed the old-psql/new-server data mismatch, before the final parser read-ahead change #22 #25.
  • Arthur Zakirovsaw an earlier versionLLM analysis, 96% sureArthur reported successful testing and identified the redundant copystream comparison removed in #28, before the final parser read-ahead change #26.
  • Tom Lanesaw the final versioncommittercommitted the patch

Credits across 2 commits

Author
Daniel VeriteLLM1
Tom LaneLLM1
Reviewer
Tom Lanecommitter1
Committer
Tom Lane2

N LLM means N of the credits come from LLM analysis, not from commit trailers.