Jul 2020

2 commits
Fix "ignoring return value" complaints from commit 96d1f423f9
4 Jul 2020Joe Conwaymaster14beta1REL_19_STABLE14beta1REL_18_STABLE14beta1REL_17_STABLE14beta1REL_16_STABLE14beta1REL_15_STABLE14beta1REL_14_STABLE14beta1REL_13_STABLE13beta3+2 more
LLM analysis, 100% surewritten from the discussion, no matching patch2 of 2 reviewers saw the final version

The src/backend/utils/adt/genfile.c change exactly implements Tom Lane's inline condition in #20, testing fread's return value alongside feof. No attached patchset contains this follow-up; Joe Conway confirms pushing it in #22.

  • Tom Lanesaw the final versiontrailerTom examined the EOF probe inherited from #16 and supplied the exact committed correction in #20.
  • Joe Conwaysaw the final versioncommittercommitted the patch
Read until EOF vice stat-reported size in read_binary_file
4 Jul 2020Joe Conwaymaster14beta1REL_19_STABLE14beta1REL_18_STABLE14beta1REL_17_STABLE14beta1REL_16_STABLE14beta1REL_15_STABLE14beta1REL_14_STABLE14beta1REL_13_STABLE13beta3+2 more
LLM analysis, 100% suremodified before commitlight changesfrom patchset #161 of 1 reviewer saw the final version

Applying #16 to the commit's parent reproduces the committed implementation except for two diagnostic lines in src/backend/utils/adt/genfile.c: the error becomes ERRCODE_PROGRAM_LIMIT_EXCEEDED with "file length too large". Joe explicitly describes these edits in #18.

  • Tom Lanesaw the final versiontrailerTom corrected binary and zero-length handling, supplied the direct-buffer optimization, challenged the allocation alternatives, and addressed the final EOF-probe proposal in #17, after which only diagnostic edits preceded commitment.

Credits across 2 commits

Author
Joe ConwayLLM1
Tom LaneLLM1
Reviewer
Tom Lane2
Joe Conwaycommitter1
Reported by
Justin Pryzby1
Committer
Joe Conway2

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