Jan 2026

2 commits
Fix possible issue of a WindowFunc being in the wrong WindowClause
26 Jan 2026David RowleyREL_18_STABLE18.2REL_17_STABLE17.8REL_16_STABLE16.12
LLM analysis, 100% suremodified before commitmoderate changesfrom patchset #40 of 1 reviewer saw the final version

ccde5be686 follows #4, but replaces the proposed list_uniquify() helper with a local foreach/list_member loop in src/backend/optimizer/plan/planner.c, eliminating changes to list.c and pg_list.h. The commit credits Meng Zhang and David Rowley as co-authors, and #5 confirms this adjustment.

  • Tender Wangsaw an earlier versionLLM analysis, 96% sureIn #3, Tender Wang traced the stale winref to skipped duplicate WindowFuncs, judged #1 workable, and questioned redundant computation before #4 introduced the cost-preserving backbranch approach.
Remove deduplication logic from find_window_functions
26 Jan 2026David Rowleymaster19beta1REL_19_STABLE19beta1
LLM analysis, 99% surepart of a posted patchsetlight changesfrom patchset #11 of 1 reviewer saw the final version

7027dd499d takes the src/backend/optimizer/util/clauses.c hunk from #1 unchanged, omitting its window.sql and window.out regression-test additions. #5 confirms that this deduplication removal was pushed to master.

  • David Rowleysaw the final versiontrailerIn #4, David Rowley validated the removal proposed in #1 after examining expression evaluation and costing, and he also committed the final version.

Credits across 2 commits

Author
Meng Zhang2
David Rowley1
Reviewer
David Rowley1
Reported by
Meng Zhang1
Committer
David Rowley2