Re: BUG #19870: WinGetFuncArgInPartition(..., WINDOW_SEEK_TAIL, ...) returns wrong rows under IGNORE NULLS

From: shihao zhong <zhong950419(at)gmail(dot)com>
To: 303677365(at)qq(dot)com, pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #19870: WinGetFuncArgInPartition(..., WINDOW_SEEK_TAIL, ...) returns wrong rows under IGNORE NULLS
Date: 2026-11-30 05:05:35
Message-ID: CAGRkXqQEaeC5eS+EOURg2KD+LPUa8nExdSpojTyTfekavZWWbw@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Hi ChunLing,

Thanks for the clear report and the probe function.

The attached patch starts the walk from the last row, the same way
the HEAD case starts from the first row.

I have to add a small test window function to regress.c to trigger it.

IGNORE NULLS is new in 19, so I think this should go to
19 and master.

Thanks,
Shihao

Attachment Content-Type Size
v1-0001-Fix-WinGetFuncArgInPartition-with-WINDOW_SEEK_TAI.patch application/octet-stream 4.4 KB

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message shihao zhong 2026-11-30 05:25:34 Re: BUG #19871: JSON_TABLE evaluates each PASSING argument once per column - a named variable $v gets different valu
Previous Message shihao zhong 2026-11-30 05:02:03 Re: BUG #19824: OMIT QUOTES breaks non-string results: array / composite / array-domain coercions in JSON_QUERY / JS