Jun 2022

1 commit
Automatically count the number of output lines in psql/help.c.
4 Jun 2022Tom Lanemaster15beta2REL_19_STABLE15beta2REL_18_STABLE15beta2REL_17_STABLE15beta2REL_16_STABLE15beta2REL_15_STABLE15beta2
LLM analysis, 100% suremodified before commitmoderate changesfrom patchset #10 of 1 reviewer saw the final version

The commit preserves the buffered-output implementation from #1, but replaces all three strchr-based newline-counting loops with per-character scans, renames HELP to HELPN, and parenthesizes the ON macro argument. Tom Lane confirms the loop and naming changes in #5 and #7; src/bin/psql/nls.mk also reflects the macro rename.

  • Robert Haassaw an earlier versionLLM analysis, 95% sureRobert endorsed the submitted patch in #2 before commitment, after which Tom changed the newline-counting logic as explained in #5.

Credits across 1 commit

Author
Tom LaneLLM1
Committer
Tom Lane1

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