Mar 2023

2 commits
Further tweaking of width_bucket() edge cases.
31 Mar 2023Tom Lanemaster16beta1REL_19_STABLE16beta1REL_18_STABLE16beta1REL_17_STABLE16beta1REL_16_STABLE16beta1
LLM analysis, 100% surewritten from the discussion, no matching patch

This follow-up implements Tom Lane's inline clamping proposal and numeric reproducer #7, adding clamps in src/backend/utils/adt/float.c and src/backend/utils/adt/numeric.c plus four regression cases. Neither attached patch contains this change; Mats Kindahl's performance assessment #8 came after the March 31 commit and does not qualify as pre-commit review.

Avoid overflow in width_bucket_float8().
30 Mar 2023Tom Lanemaster16beta1REL_19_STABLE16beta1REL_18_STABLE16beta1REL_17_STABLE16beta1REL_16_STABLE16beta1
LLM analysis, 100% suremodified before commitmoderate changesfrom patchset #41 of 1 reviewer saw the final version

The commit retains the conditional scaling and division-first calculation from #4, extends them to descending bounds, centralizes overflow-checked addition, removes the assertion, and revises regression coverage. Tom Lane explicitly describes these committer changes in #5, and the commit credits Mats Kindahl and Tom Lane as authors.

  • Tom Lanesaw the final versioncommittercommitted the patch

Credits across 2 commits

Author
Mats KindahlLLM1
Reviewer
Tom Lanecommitter1
Committer
Tom Lane2

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