Window function run conditions
Planner and executor stopping evaluation of monotonic window functions once a filter on their result can no longer match.
Versions
- PostgreSQL 17 · shipped · improved · moderate · 1 commit · +46 / -14 lines
Threads
- BUG #19533: Wrong results from WindowAgg run-condition pushdown on count() with EXCLUDE CURRENT ROW
- BUG #19532: Window run-condition optimization can produce wrong results for count() window aggregates
- Remove unused parameter form find_window_run_conditions()
- Remove unused parameter on check_and_push_window_quals
- [Bug] Heap Use After Free in Window Aggregate Execution
- BUG #18305: Unexpected error: "WindowFunc not found in subplan target lists" triggered by subqueries
- BUG #18277: Unexpected error: "WindowFunc not found in subplan target lists" triggered by JOIN and Window Func
- Remove WindowClause PARTITION BY items belonging to redundant pathkeys
- Monotonic WindowFunc support for ntile(), percent_rank() and cume_dist()
- BUG #17709: Regression in PG15 with window functions - "WindowFunc not found in subplan target lists"
- Bug in row_number() optimization
- Window Function "Run Conditions"