Feb 2024

2 commits
Adjust reltarget assignment for UPPERREL_PARTIAL_DISTINCT rel
7 Feb 2024David Rowleymaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
LLM analysis, 100% surelanded as postedfrom patchset #5

The committed diff matches #5 in src/backend/optimizer/path/allpaths.c and src/backend/optimizer/plan/planner.c, including explicit PathTarget parameters and reordered upper_targets assignments. The commit credits Richard Guo alongside patchset sender David Rowley as authors 902900b308.

Allow Gather Merge in more cases for parallel DISTINCT
2 Feb 2024David Rowleymaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
LLM analysis, 100% surepart of a posted patchsetmoderate changesfrom patchset #11 of 1 reviewer saw the final version

The commit takes the generate_useful_gather_paths() substitution in src/backend/optimizer/plan/planner.c and the matching select_distinct.out plan change from #1, leaving out the PathTarget reassignment and ancillary cleanup. David Rowley explicitly confirms that only the partial-path sorting portion had landed #5.

  • David Rowleysaw the final versiontrailerDavid questioned the benefit using planner costs #2, then benchmarked the ORDER BY/LIMIT case and endorsed the improvement #4; he also committed the final version.

Credits across 2 commits

Author
Richard Guo2
David Rowley1
Reviewer
David Rowley1
Committer
David Rowley2