Mar 2022

4 commits
Tighten overflow checks in tidin().
4 Mar 2022Tom Lanemaster15beta1REL_19_STABLE15beta1REL_18_STABLE15beta1REL_17_STABLE15beta1REL_16_STABLE15beta1REL_15_STABLE15beta1
LLM analysis, 100% surewritten from the discussion, no matching patch

Tom Lane demonstrated silent tidin() overflow and proposed fixing it in #16. The commit rewrites conversion checks in src/backend/utils/adt/tid.c and adds regression tests; neither attachment contains these changes.

Remove some pointless code in block.h.
4 Mar 2022Tom Lanemaster15beta1REL_19_STABLE15beta1REL_18_STABLE15beta1REL_17_STABLE15beta1REL_16_STABLE15beta1REL_15_STABLE15beta1
LLM analysis, 99% surewritten from the discussion, no matching patch

The commit explicitly credits reviewing #1 as its origin, but its removal of redundant bool casts and pointer assertions in src/include/storage/block.h appears in neither attachment.

Fix bogus casting in BlockIdGetBlockNumber().
4 Mar 2022Tom Lanemaster15beta1REL_19_STABLE15beta1REL_18_STABLE15beta1REL_17_STABLE15beta1REL_16_STABLE15beta1REL_15_STABLE15beta1REL_14_STABLE14.3REL_13_STABLE13.7+3 more
LLM analysis, 100% suremodified before commitlight changesfrom patchset #12 of 2 reviewers saw the final version

The single block.h hunk implements #1, with the outer result cast removed, the low-half cast changed to BlockNumber, and spacing adjusted. The commit credits Zhihong Yu and describes Tom Lane's edits as cosmetic.

  • Andres Freundsaw the final versionLLM analysis, 96% sureAndres Freund reported that he also did not reproduce the warning in #10, then analyzed the high-half value and suggested a reproducer in #14; only cosmetic cast adjustments followed.
  • Tom Lanesaw the final versioncommittercommitted the patch
Clean up assorted failures under clang's -fsanitize=undefined checks.
3 Mar 2022Tom Lanemaster15beta1REL_19_STABLE15beta1REL_18_STABLE15beta1REL_17_STABLE15beta1REL_16_STABLE15beta1REL_15_STABLE15beta1REL_14_STABLE14.3REL_13_STABLE13.7+3 more
LLM analysis, 100% suremodified before commitmoderate changesfrom patchset #110 of 1 reviewer saw the final version

All eight files and nine hunks from #11 are preserved unchanged. The commit adds one further zero-length memcpy guard in contrib/pgcrypto/px.c, changing the else branch to else if (ivlen > 0).

  • Andres Freundsaw an earlier versionLLM analysis, 92% sureAndres Freund endorsed the cleanup and recommended fixing all supported branches in #12, which Tom Lane accepted in #13; the additional pgcrypto guard followed without a visible review.

Credits across 4 commits

Author
Tom LaneLLM1
Zhihong YuLLM1
Reviewer
Tom Lanecommitter1
Committer
Tom Lane4

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