Mar - Apr 2024

4 commits
Don't adjust ressortgroupref in generate_setop_child_grouplist()
3 Apr 2024David Rowleymaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
LLM analysis, 100% surewritten from the discussion, no matching patch1 of 1 reviewer saw the final version

The single deletion in src/backend/optimizer/plan/planner.c removes the redundant ressortgroupref assignment identified by Tom Lane in #25; no attachment proposes this deletion.

  • Tom Lanesaw the final versionLLM analysis, 100% sureTom identified the exact redundant assignment removed by this discussion-derived commit in #25.
Don't zero tuple_fraction when planning UNIONs with ORDER BYs
2 Apr 2024David Rowleymaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
LLM analysis, 100% surewritten from the discussion, no matching patch1 of 1 reviewer saw the final version

The commit removes grouping_planner()'s ORDER BY-dependent tuple_fraction reset and its obsolete comment, exactly the change proposed in #25. No attached patch contains this removal.

  • Tom Lanesaw the final versionLLM analysis, 100% sureTom explained why the new fast-start UNION paths made the tuple_fraction reset obsolete and proposed its removal in #25.
Fix assert failure when planning setop subqueries with CTEs
1 Apr 2024David Rowleymaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
LLM analysis, 99% suremodified before commitmoderate changesfrom patchset #210 of 3 reviewers saw the final version

Retains #21's explicit propagation of set-operation context through subquery_planner() and grouping_planner(), but replaces PlannerContext with a direct SetOperationStmt parameter. Following #26, it also adds materialized and non-materialized CTE regression tests, as confirmed in #27.

  • Alexander Lakhinsaw an earlier versionLLM analysis, 97% sureAlexander supplied the CTE assertion-failure reproducer against the landed UNION implementation in #17, before the explicit-context fix was developed.
  • Richard Guosaw an earlier versionLLM analysis, 99% sureRichard diagnosed the incorrect parent-root inference in #19 and endorsed #21 in #22, before the context structure was replaced with a direct parameter.
  • Tom Lanesaw an earlier versionLLM analysis, 99% sureTom reviewed the context proposal and argued in #26 for a direct parameter so omitted caller updates would cause compiler errors, which David adopted in #27.
Allow planner to use Merge Append to efficiently implement UNION
25 Mar 2024David Rowleymaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
LLM analysis, 98% surepart of a posted patchsetmoderate changesfrom patchset #140 of 2 reviewers saw the final version

Lands the main UNION patch from #14, excluding its experimental convert_subquery_pathkeys attachment. Committer edits move group estimation into build_setop_child_paths(), populate child eclass_indexes, remove an invalid resjunk assertion, and adjust tests, consistent with #15.

  • Richard Guosaw an earlier versiontrailerRichard supplied the sorting and pathkey corrections in #5 and reviewed partial paths and group estimates in #13, before the subsequent group-estimation and equivalence-index fixes.
  • Andy Fansaw an earlier versiontrailerAndy assessed the subquery-scan sorting design and identified redundant pathkey checks in #6, before substantial subsequent revisions.

Feb 2024

2 commits
Simplify PathKey checking code
15 Feb 2024David Rowleymaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
LLM analysis, 100% surelanded as postedfrom patchset #61 of 1 reviewer saw the final version

The two pathkeys.c hunks exactly match #6 modulo shifted line numbers, with identical stable patch IDs. David confirms pushing Andy's patch in #8.

  • David Rowleysaw the final versioncommittercommitted the patch
Clarify the 'rows' parameter in create_append_path
15 Feb 2024David Rowleymaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
LLM analysis, 100% surepart of a posted patchsetlight changesfrom patchset #2

Extracts only the create_append_path() rows-parameter documentation from #2, with punctuation and wording improvements. David explicitly describes this separate comment commit in #7.

Credits across 6 commits

Author
David Rowley2 LLM3
Andy Fan1
Reviewer
Andy Fan1
David Rowleycommitter1
Richard Guo1
Reported by
Tom Lane2
Alexander Lakhin1
Committer
David Rowley6

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