Nov 2025

2 commits
Fix UNION planner estimate_num_groups with varno==0
6 Nov 2025David Rowleymaster19beta1REL_19_STABLE19beta1
LLM analysis, 97% suremodified before commitlight changesfrom patchset #220 of 1 reviewer saw the final version

The code and regression-test diff exactly matches #22, including the RELOPT_UPPER_REL guard in prepunion.c. Only the commit description was expanded to explain the Vars and quote the reported error.

  • Alexander Lakhinsaw an earlier versionLLM analysis, 87% sureReported a reproducible failure in the landed UNION optimization from #6 in #20, prompting the new estimation guard; no review of #22 is shown.
Fix possible usage of incorrect UPPERREL_SETOP RelOptInfo
4 Nov 2025David Rowleymaster19beta1REL_19_STABLE19beta1
LLM analysis, 95% suremodified before commitlight changesfrom patchset #180 of 1 reviewer saw the final version

The latest matching attachment is #18: its prepunion.c logic and union.out adjustment match the commit, with a rewritten code comment. The commit credits David Rowley and explicitly identifies Richard Guo's submission as independent; David's implementation appears in #17.

  • Alexander Lakhinsaw an earlier versionLLM analysis, 87% sureSupplied the reproducer in #14 exposing incorrect relation reuse in the landed UNION work from #6, before the relid-accumulation correction was written.

Oct 2025

3 commits
Teach planner to short-circuit EXCEPT/INTERSECT with dummy inputs
7 Oct 2025David Rowleymaster19beta1REL_19_STABLE19beta1
LLM analysis, 99% surepart of a posted patchsetlight changesfrom patchset #90 of 1 reviewer saw the final version

Commits only the EXCEPT/INTERSECT patch from the two-patch submission #9. Its executable changes and tests match, apart from wording changes in a prepunion.c comment and the EXCEPT ALL test description.

  • Tom Lanesaw an earlier versiontrailerProposed dropping special EXCEPT deduplication in #2 and accepted the revised approach in #5 and #7, before the targetlist corrections and additional cases in #9.
Fix incorrect targetlist in dummy UNIONs
7 Oct 2025David Rowleymaster19beta1REL_19_STABLE19beta1
LLM analysis, 99% surepart of a posted patchsetlight changesfrom patchset #91 of 1 reviewer saw the final version

Commits only the targetlist-fix patch from #9, retaining the setrefs.c Var rewrite, removal of the child-targetlist substitution and ORDER BY regression test. Differences within that patch are explanatory comments and the commit description.

  • Tom Lanesaw the final versionLLM analysis, 96% sureExamined the targetlist design in #10, explaining the problems with phony varnos and the wider consequences of changing their convention; only explanatory wording changed before commit.
Teach UNION planner to remove dummy inputs
4 Oct 2025David Rowleymaster19beta1REL_19_STABLE19beta1
LLM analysis, 100% surepart of a posted patchsetlight changesfrom patchset #61 of 1 reviewer saw the final version

Commits the UNION patch alone from #6, including dummy-status propagation, input pruning and single-child group estimates. Its diff differs only in one comment's wording, apart from rebased context.

  • Tom Lanesaw the final versiontrailerReviewed the initial scope in #2, questioned the is_dummy_rel() change in #5, and explicitly accepted the replacement implementation in #7.

Credits across 5 commits

Author
David Rowley5
Reviewer
Tom Lane2
Reported by
Alexander Lakhin2
Committer
David Rowley5