Feb 2025

2 commits
Avoid unnecessary computation of pgbench's script line number.
27 Feb 2025Tom Lanemaster18beta1REL_19_STABLE18beta1REL_18_STABLE18beta1
LLM analysis, 99% surelanded as postedfrom patchset #61 of 1 reviewer saw the final version

The diff exactly matches the second patch in #6, including all three hunks in src/bin/pgbench/pgbench.c. Its Author credit identifies Daniel Verite, whose original proposal appears in #1, although Tom Lane sent the final series.

  • Tom Lanesaw the final versioncommittercommitted the patch
Get rid of O(N^2) script-parsing overhead in pgbench.
27 Feb 2025Tom Lanemaster18beta1REL_19_STABLE18beta1REL_18_STABLE18beta1
LLM analysis, 99% suremodified before commitmoderate changesfrom patchset #60 of 1 reviewer saw the final version

The commit matches the first patch in #6 except for expr_scanner_get_substring() in src/bin/pgbench/exprscan.l and a comment in src/fe_utils/psqlscan.l. The function now determines the trimmed length before allocating and copying, replacing the submitted strdup-then-trim implementation.

  • Daniel Veritesaw an earlier versionLLM analysis, 92% sureDaniel explicitly said the patch looked good in #7, before the subsequent local rework of expr_scanner_get_substring() in c8c74ad7e1.

Credits across 2 commits

Author
Daniel Verite1
Tom Lane1
Reviewer
Tom Lanecommitter1
Reported by
Daniel Verite1
Committer
Tom Lane2