Dec 2024

2 commits
Detect redundant GROUP BY columns using UNIQUE indexes
12 Dec 2024David Rowleymaster18beta1REL_19_STABLE18beta1REL_18_STABLE18beta1
LLM analysis, 100% surepart of a posted patchsetmoderate changesfrom patchset #180 of 2 reviewers saw the final version

Takes the unique-index optimization portion of #18, with its call-site relocation assigned to the companion commit. Adds the tryremove early exit in src/backend/optimizer/plan/initsplan.c, a partial-index regression case, and comment/formatting edits, as discussed in #22 and #23.

  • jian hesaw an earlier versiontrailerTested the original proposal in #2, explored expression indexes in #17, and endorsed the final posted design in #21, before the unposted early-exit logic was added.
  • Andrei Lepikhovsaw an earlier versiontrailerRequested the reviewable split in #16 and reviewed both patches in #20, proposing a shortcut that David implemented with different logic before committing.
Defer remove_useless_groupby_columns() work until query_planner()
12 Dec 2024David Rowleymaster18beta1REL_19_STABLE18beta1REL_18_STABLE18beta1
LLM analysis, 100% surepart of a posted patchsetlight changesfrom patchset #182 of 2 reviewers saw the final version

Combines the function-relocation patch from #18 with that series' call-site movement from grouping_planner() to query_planner(); the remaining optimization landed separately. The relocated function is unchanged, and #22 explicitly explains the revised commit boundary.

  • Andrei Lepikhovsaw the final versiontrailerRequested separation in #16 and approved the relocation while reviewing both series patches in #20, covering the call-site change subsequently moved between commits.
  • jian hesaw the final versiontrailerWorked from the relocated implementation in #17 and explicitly endorsed calling removal after add_base_rels_to_query() in #21.

Credits across 2 commits

Author
David Rowley1 LLM2
jian he1
Zhang Mingli1
Reviewer
Andrei Lepikhov2
jian he2
Committer
David Rowley2

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