Dec 2023

2 commits
Prevent integer overflow when forming tuple width estimates.
19 Dec 2023Tom Lanemaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
LLM analysis, 100% suremodified before commitmoderate changesfrom patchset #161 of 4 reviewers saw the final version

The commit preserves the six-file implementation in #16, changing double accumulators and clamp_width_est()'s argument to int64, removing the NaN check, and expanding comments as announced in #20. The commit credits Richard Guo and Tom Lane; Tom forwarded and revised Richard's implementation from #14.

  • RekGRpthsaw an earlier versionLLM analysis, 95% sureRekGRpth questioned whether overflow could wrap back into the permitted range in #6, exposing a limitation of #5 before the accumulation strategy changed.
  • Alexander Lakhinsaw an earlier versionLLM analysis, 100% sureAlexander explicitly said #5 looked good in #8, before substantial changes to accumulation and coverage.
  • Junwang Zhaosaw an earlier versionLLM analysis, 98% sureJunwang reviewed #14 and proposed int64 accumulation in #15, which Tom ultimately adopted after additional helper and API changes.
  • Tom Lanesaw the final versioncommittercommitted the patch
compute_bitmap_pages' loop_count parameter should be double not int.
18 Dec 2023Tom Lanemaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
LLM analysis, 100% surepart of a posted patchsetlight changesfrom patchset #141 of 1 reviewer saw the final version

The commit extracts the compute_bitmap_pages() loop_count change from int to double in src/backend/optimizer/path/costsize.c and src/include/optimizer/cost.h from #14. It adds explanatory comments and renames output parameters, leaving the tuple-width work for the later commit.

  • Tom Lanesaw the final versioncommittercommitted the patch

Credits across 2 commits

Author
Richard GuoLLM2
Reviewer
Tom Lanecommitter2
Committer
Tom Lane2

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