Aug 2023

3 commits
Attempt to stabilize new window agg regression test
4 Aug 2023David Rowleymaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
LLM analysis, 100% surewritten from the discussion, no matching patch2 of 2 reviewers saw the final version

No attachment contains this follow-up: src/test/regress/sql/window.sql gains WHERE t2.two = 1 and window.out changes accordingly. It implements Tom Lane's suggestion #14 after Nathan Bossart reported swapped join inputs on 32-bit builds #13.

  • Nathan Bossartsaw the final versionLLM analysis, 98% sureNathan reported reproducible 32-bit failures in the committed tests from #9, prompting this test-only correction #13.
  • Tom Lanesaw the final versionLLM analysis, 100% sureTom reproduced the test failure and proposed adding a WHERE restriction to break the equal-size join tie, which the commit implements #14.
Minor adjustments to WindowAgg startup cost code
3 Aug 2023David Rowleymaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
LLM analysis, 99% surewritten from the discussion, no matching patch1 of 1 reviewer saw the final version

This unattached follow-up removes the temporary DEBUG1 output, relocates the startup-tuple calculation and adjusts a comment in src/backend/optimizer/path/costsize.c. Its commit message identifies forgotten local edits; the temporary debugging output was explicitly described in #7.

  • Andy Fansaw the final versionLLM analysis, 90% sureAndy reviewed the costing implementation and approved the final attachment #10, after which this follow-up only removes debugging output and makes light organizational and comment changes.
Account for startup rows when costing WindowAggs
3 Aug 2023David Rowleymaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1Also in: BUG #17862: Overall query cost ignores window function
LLM analysis, 100% surelanded as postedfrom patchset #91 of 1 reviewer saw the final version

All five changed files match #9 apart from indentation and comment wrapping in src/backend/optimizer/path/costsize.c; even the temporary DEBUG1 statement remains in this initial commit.

  • Andy Fansaw the final versiontrailerAndy questioned the fallback estimate #2, tested boundary detection and raised statistics and caching concerns #8, then explicitly approved the final attachment #10.

Credits across 3 commits

Author
David Rowley1
Reviewer
Andy Fan1
Reported by
Nathan Bossart1
Tim Palmer1
Tom Lane1
Committer
David Rowley3