Feb - Mar 2025

3 commits
Refactor Copy{From|To}GetRoutine() to use pass-by-reference argument.
4 Mar 2025Masahiko Sawadamaster18beta1REL_19_STABLE18beta1REL_18_STABLE18beta1
LLM analysis, 100% surelanded as postedfrom patchset #2412 of 2 reviewers saw the final version

All four hunks in copyfrom.c and copyto.c exactly match #241, including blob indexes; Sawada forwarded Sutou's patch with an updated commit message.

  • Junwang Zhaosaw the final versiontrailerJunwang reported the unnecessary copying and approved Sutou's identical implementation in #240.
  • Masahiko Sawadasaw the final versiontrailerSawada approved the fix, updated its commit message in #241, and committed it.
Refactor COPY FROM to use format callback functions.
28 Feb 2025Masahiko Sawadamaster18beta1REL_19_STABLE18beta1REL_18_STABLE18beta1
LLM analysis, 99% surepart of a posted patchsetlight changesfrom patchset #2281 of 5 reviewers saw the final version

Lands the COPY FROM component of the two-patch submission #228; differences are a forward declaration for CopyFromTextLikeOneRow and small comment/formatting edits, with matching core logic.

  • Masahiko Sawadasaw the final versiontrailerSawada reviewed, extracted and revised the refactors in #185 and #226, then committed the final COPY FROM implementation.
  • Michael Paquiersaw an earlier versiontrailerMichael reviewed and profiled the earlier COPY FROM designs, but subsequent forced-inlining and implementation restructuring followed his review.
  • Andres Freundsaw an earlier versiontrailerAndres challenged redundant dispatch, mixed-format parsing and error handling in #118 and #130, before the later specialization and rework.
  • Tomas Vondrasaw an earlier versiontrailerTomas reviewed the minimal design and benchmarked the complete series in #166 and #169, exposing regressions before later inlining changes.
  • Junwang Zhaosaw an earlier versiontrailerJunwang tested both directions and proposed comment corrections in #165, while his later benchmark covered only COPY TO.
Refactor COPY TO to use format callback functions.
27 Feb 2025Masahiko Sawadamaster18beta1REL_19_STABLE18beta1REL_18_STABLE18beta1
LLM analysis, 99% surepart of a posted patchsetlight changesfrom patchset #2283 of 5 reviewers saw the final version

Lands the COPY TO component of #228; all added and removed lines match that attachment exactly, while the companion COPY FROM patch was committed separately.

  • Masahiko Sawadasaw the final versiontrailerSawada investigated compiler inlining, prepared the final refactor in #226 and #228, and committed it.
  • Michael Paquiersaw the final versiontrailerMichael's latest review in #212 requested worst-case single-column COPY TO benchmarks, after which only light changes affected this component.
  • Andres Freundsaw an earlier versiontrailerAndres rejected per-attribute indirect dispatch and supplied the inline specialization prototype in #122, with substantial further development afterward.
  • Tomas Vondrasaw an earlier versiontrailerTomas tested the revived series and identified performance problems in #166 and #169, before forced inlining and later restructuring.
  • Junwang Zhaosaw the final versiontrailerJunwang benchmarked COPY TO from #191 in #194, and subsequent changes to that refactor were light.

Feb 2024

5 commits
Revert "Refactor CopyReadAttributes{CSV,Text}() to use a callback in COPY FROM"
14 Feb 2024Michael Paquiermaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1reverts 2 commits here
LLM analysis, 99% surewritten from the discussion, no matching patch0 of 2 reviewers saw the final version

Reverts the earlier COPY FROM attribute callback rather than applying an attached replacement; #128 and #130 explain the redundant dispatch, and #133 announces the revert.

  • Andres Freundsaw an earlier versionLLM analysis, 99% sureAndres identified the COPY FROM callback as repeating the rejected COPY TO design in #130, before the revert.
  • Sutou Kouheisaw an earlier versionLLM analysis, 96% sureSutou explicitly proposed removing the COPY FROM callback and supplied alternative specialization deltas in #128.
Simplify signature of CopyAttributeOutCSV() in copyto.c
7 Feb 2024Michael Paquiermaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
LLM analysis, 98% surewritten from the discussion, no matching patch

Restores only the CopyAttributeOutCSV single_attr signature cleanup described in #113; that cleanup was already in the attached patch's base, and no standalone matching attachment appears.

Revert "Refactor CopyAttributeOut{CSV,Text}() to use a callback in COPY TO"
6 Feb 2024Michael Paquiermaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1reverts 1 commit here
LLM analysis, 100% surewritten from the discussion, no matching patch0 of 1 reviewer saw the final version

Exactly reverses the COPY TO attribute-callback commit after Andres's objections in #118 and #120; Michael confirms the discussion-driven revert in #123.

  • Andres Freundsaw an earlier versionLLM analysis, 100% sureAndres explained before the revert that per-row format selection made the additional per-attribute indirect call unnecessary in #118 and #120.
Refactor CopyAttributeOut{CSV,Text}() to use a callback in COPY TO
5 Feb 2024Michael Paquiermaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
LLM analysis, 94% surepart of a posted patchsetmoderate changesfrom patchset #1071 of 3 reviewers saw the final version

Extracts attribute-output dispatch from the larger COPY TO refactor in #107, adopting state-held callbacks discussed in #109 and simplifying CopyAttributeOutCSV's signature.

  • Junwang Zhaosaw an earlier versionLLM analysis, 90% sureJunwang reviewed the initial extraction and challenged routine placement and extensibility in #108, before the final state-callback rewrite.
  • jian hesaw an earlier versionLLM analysis, 97% surejian he tested and reported CSV COPY TO performance for #62 in #67, before subsequent callback restructuring.
  • Michael Paquiersaw the final versioncommittercommitted the patch
Refactor CopyReadAttributes{CSV,Text}() to use a callback in COPY FROM
5 Feb 2024Michael Paquiermaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
LLM analysis, 94% surepart of a posted patchsetmoderate changesfrom patchset #1071 of 1 reviewer saw the final version

Extracts COPY FROM attribute parsing from #107 into a state-held callback selected in BeginCopyFrom, following Sutou's concrete examples in #112; the remaining format refactor is omitted.

  • Michael Paquiersaw the final versioncommittercommitted the patch

Credits across 8 commits

Author
Sutou Kouhei5
Reviewer
Michael Paquiercommitter4
Junwang Zhao3
Masahiko Sawada3
Andres Freund2
Tomas Vondra2
Reported by
Junwang Zhao1
Tom Lane1
Committer
Michael Paquier5
Masahiko Sawada3