Wrong results from WindowAgg run-condition pushdown on count() with EXCLUDE CURRENT ROW

Edit
ID 6945
Title Wrong results from WindowAgg run-condition pushdown on count() with EXCLUDE CURRENT ROW
CI (CFBot) Summary
Stats (from CFBot) Patch version: v1, Patch count: 1, First patch: +379−0, All patches: +379−0
Tags Bugfix
Created 2026-06-28 01:49:56
Last modified 2026-06-28 01:49:56 (4 hours ago)
Latest email 2026-06-27 16:53:37 (13 hours ago)
Status
PG20-1 (2026-07-01 – 2026-07-31): Needs review
Target version 20
Authors Chengpeng Yan (chengpeng.yan)
Reviewers Become reviewer
Committer
Links
Emails
BUG #19533: Wrong results from WindowAgg run-condition pushdown on count() with EXCLUDE CURRENT ROW
First at 2026-06-24 14:41:28 by PG Bug reporting form <noreply at postgresql.org>
Latest at 2026-06-27 16:53:37 by Chengpeng Yan <chengpeng_yan at outlook.com>
Latest attachment (v1-0001-Avoid-count-run-conditions-with-frame-exclusion.patch) at 2026-06-27 16:53:37 from Chengpeng Yan <chengpeng_yan at outlook.com>
    Attachment (v1-0001-Avoid-count-run-conditions-with-frame-exclusion.patch) at 2026-06-27 16:53:37 from Chengpeng Yan <chengpeng_yan at outlook.com> (Patch: Yes)
History
When Who What
2026-06-28 01:49:56 Chengpeng Yan (chengpeng.yan) Attached mail thread 19533-413a1014e5d0e766@postgresql.org
2026-06-28 01:49:56 Chengpeng Yan (chengpeng.yan) Created patch record
Edit