May 2022

1 commit
Fix rowcount estimate for SubqueryScan that's under a Gather.
4 May 2022Tom Lanemaster15beta1REL_19_STABLE15beta1REL_18_STABLE15beta1REL_17_STABLE15beta1REL_16_STABLE15beta1REL_15_STABLE15beta1
LLM analysis, 100% suremodified before commitmoderate changesfrom patchset #230 of 3 reviewers saw the final version

The commit preserves #23's row-estimation logic and regression output, but additionally changes run_cost from cpu_per_tuple * baserel->tuples to cpu_per_tuple * path->subpath->rows in src/backend/optimizer/path/costsize.c. Tom Lane explicitly identifies this additional costing correction and announces the push in #30.

  • Robert Haassaw an earlier versionLLM analysis, 99% sureRobert challenged the original patch's row-count reasoning in #6, examined the replacement in #25, and accepted proceeding in #29, before the additional CPU-cost correction described in #30.
  • Richard Guosaw an earlier versionLLM analysis, 92% sureRichard reported debugging the competing paths and explained why SubqueryScan nodes disappear from EXPLAIN in #3, then analyzed filter and per-worker row-count requirements in #15 before the approach was reworked.
  • David G. Johnstonsaw an earlier versionLLM analysis, 99% sureDavid examined the replacement's row-estimation design and confirmed that it fixed the observed problem in #24, before the additional CPU-cost correction described in #30.

Credits across 1 commit

Author
Tom LaneLLM1
Committer
Tom Lane1

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