Apr 2024

3 commits
Further review for re-implementation of psql's FETCH_COUNT feature.
8 Apr 2024Tom Lanemaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
LLM analysis, 100% surewritten from the discussion, no matching patch1 of 1 reviewer saw the final version

Alexander Lakhin's obsolete-comment report in #27 prompted Tom Lane's follow-up, explicitly described in #31, without an attached patch. The commit updates src/bin/psql/common.c to honor queryFout and supplied print options and restore RETURNING status output through PrintQueryStatus().

  • Alexander Lakhinsaw the final versionLLM analysis, 96% sureHis review of the landed implementation identified the obsolete ExecQueryUsingCursor comment in #27, clarified in #29, directly prompting this follow-up; no attached patchset was reviewed.
Re-implement psql's FETCH_COUNT feature atop libpq's chunked mode.
7 Apr 2024Tom Lanemaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
LLM analysis, 100% surepart of a posted patchsetmoderate changesfrom patchset #201 of 4 reviewers saw the final version

This lands the psql half of #20, retaining cursor removal and chunked fetching while reworking ExecQueryAndProcessResults() error handling, cancellation checks, pager state, and result-variable updates. SetupGOutput() also changes signature and correctly dereferences is_pipe, while the expected extra rows before an error are omitted from src/test/regress/expected/psql.out.

  • Robert Haassaw an earlier versionLLM analysis, 85% sureHis performance concern and proposal for incremental batches in #5, during discussion of #1, helped shape the eventual replacement of psql's cursor implementation.
  • Jakub Wartaksaw an earlier versionLLM analysis, 100% sureHe confirmed that #14 fixed the original memory problem and built cleanly, while reporting continued processing after pager exit in #15, before the committed result-loop revisions.
  • Laurenz Albesaw an earlier versionLLM analysis, 100% sureHe reviewed and tested the psql patch in #18, proposed the adopted comment and condition simplifications, and is credited in 90f5178211, but further logic changes followed.
  • Tom Lanesaw the final versioncommittercommitted the patch
Support retrieval of results in chunks with libpq.
7 Apr 2024Tom Lanemaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
LLM analysis, 100% surepart of a posted patchsetsignificant changesfrom patchset #201 of 4 reviewers saw the final version

This lands the libpq half of #20 with substantial committer changes: fe-exec.c unifies single-row and chunked processing using partialResMode and saved_result, and fe-protocol3.c and libpq_pipeline tests gain supporting changes. It also preserves the existing documentation section ID, consistent with #21 and the rework announced in #25.

  • Robert Haassaw an earlier versionLLM analysis, 87% sureDuring discussion of #1, he proposed fetching incremental batches larger than one row in #5, a design subsequently implemented by the chunked-results series.
  • Jakub Wartaksaw an earlier versionLLM analysis, 99% sureHe tested #14 with the original reproducer and two compilers, reported success, and identified inconsistent API parameter names in #15, before the substantial libpq rework.
  • Laurenz Albesaw an earlier versionLLM analysis, 100% sureHe reviewed the libpq patch in #17, suggested documentation corrections and shared single-row/chunked internals, and is explicitly credited in 4643a2b265, although the rewritten implementation followed his review.
  • Tom Lanesaw the final versioncommittercommitted the patch

Credits across 3 commits

Author
Daniel VeriteLLM2
Reviewer
Tom Lanecommitter2
Committer
Tom Lane3

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