Jan 2024

1 commit
Teach estimate_array_length() to use statistics where available.
4 Jan 2024Tom Lanemaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
LLM analysis, 100% suremodified before commitmoderate changesfrom patchset #61 of 3 reviewers saw the final version

The commit retains the DECHIST lookup, PlannerInfo plumbing and clamp_row_est() from #6, while adopting the double-return proposal from #5. In src/backend/utils/adt/selfuncs.c it also allows non-Var expressions and guards empty statistics slots; it removes the regression test and array_typanalyze.c comment, with the principal changes explained in #7.

  • Laurenz Albesaw an earlier versionLLM analysis, 99% sureIn #2, he identified configuration-dependent EXPLAIN output in the original regression test; moderate implementation changes followed his review.
  • jian hesaw an earlier versionLLM analysis, 99% sureHe tested #1, demonstrated truncation in #4, and supplied the double-return fix in #5, earning explicit review credit in 9391f71523, although further implementation changes followed.
  • Tom Lanesaw the final versioncommittercommitted the patch

Credits across 1 commit

Author
Paul A JungwirthLLM1
Reviewer
Tom Lanecommitter1
Committer
Tom Lane1

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