Jul 2019

2 commits
Adjust overly strict Assert
21 Jul 2019David Rowleymaster13beta1REL_19_STABLE13beta1REL_18_STABLE13beta1REL_17_STABLE13beta1REL_16_STABLE13beta1REL_15_STABLE13beta1REL_14_STABLE13beta1REL_13_STABLE13beta1
LLM analysis, 100% surewritten from the discussion, no matching patch

After Andreas Seltenreich's assertion report #28, David Rowley diagnosed dead relations left by join removal in #29 and confirmed the chosen fix in #30. The commit permits RELOPT_DEADREL in get_eclass_for_sort_expr()'s assertion; no attached patch contains this fix.

Speed up finding EquivalenceClasses for a given set of rels
21 Jul 2019David Rowleymaster13beta1REL_19_STABLE13beta1REL_18_STABLE13beta1REL_17_STABLE13beta1REL_16_STABLE13beta1REL_15_STABLE13beta1REL_14_STABLE13beta1REL_13_STABLE13beta1
LLM analysis, 100% suremodified before commitmoderate changesfrom patchset #260 of 2 reviewers saw the final version

Both attachments in #26 apply to the commit's parent and match all files except local edits in src/backend/optimizer/path/equivclass.c. The commit builds exact child EC indexes, replaces redundant checks with assertions, and intersects inner and outer relation indexes in generate_join_implied_equalities(), consistent with #27.

  • Tom Lanesaw an earlier versiontrailerTom reviewed the temporary-index design in #14, challenged index maintenance in #18, and supplied the redesign in #21, before the later join-generation and child-index logic changes.
  • Tomas Vondrasaw an earlier versiontrailerTomas benchmarked the first two indexing prototypes and reported regression failures in #6, then discussed construction costs and simple-query testing in #8, before substantial redesign.

Feb 2019

1 commit
Speed up match_eclasses_to_foreign_key_col() when there are many ECs.
21 Feb 2019Tom Lanemaster12beta1REL_19_STABLE12beta1REL_18_STABLE12beta1REL_17_STABLE12beta1REL_16_STABLE12beta1REL_15_STABLE12beta1REL_14_STABLE12beta1REL_13_STABLE12beta1+4 more
LLM analysis, 100% suremodified before commitlight changesfrom patchset #111 of 1 reviewer saw the final version

The commit implements the two bms_is_member() checks from #11 in match_eclasses_to_foreign_key_col(), changing only the explanatory comment and surrounding whitespace. Tom Lane confirms pushing this small fix in #12.

  • Tom Lanesaw the final versioncommittercommitted the patch

Credits across 3 commits

Author
David Rowley1 LLM2
Tom Lane1
Reviewer
Tom Lanecommitter2
Tomas Vondra1
Reported by
sqlsmith via Andreas Seltenreich1
Committer
David Rowley2
Tom Lane1

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