Mar 2021

1 commit
Add bound check before bsearch() for performance
10 Mar 2021Peter Eisentrautmaster14beta1REL_19_STABLE14beta1REL_18_STABLE14beta1REL_17_STABLE14beta1REL_16_STABLE14beta1REL_15_STABLE14beta1REL_14_STABLE14beta1
LLM analysis, 100% suremodified before commitlight changesfrom patchset #141 of 3 reviewers saw the final version

The commit matches both hunks of #14 in src/backend/access/heap/vacuumlazy.c, preserving the include and encoded-TID bounds-check logic. Committer edits only reformat declarations, remove redundant parentheses and rewrite the explanatory comment; #15 announces the commit.

  • Thomas Munrosaw an earlier versionLLM analysis, 98% sureThomas questioned the extra boundary fields in #3, which Sawada accepted in #6; subsequent versions replaced maintained block bounds with encoded array-endpoint comparisons.
  • Peter Geoghegansaw an earlier versionLLM analysis, 94% surePeter identified the bounds check's sensitivity to outlying dead TIDs in #4 and pointed to itemptr_encode() in #7, which the later implementation adopted.
  • Peter Eisentrautsaw the final versioncommittercommitted the patch

Credits across 1 commit

Author
Masahiko Sawada1
Reviewer
Peter Eisentrautcommitter1
Committer
Peter Eisentraut1