| From: | Tatsuo Ishii <ishii(at)postgresql(dot)org> |
|---|---|
| To: | assam258(at)gmail(dot)com |
| Cc: | jian(dot)universality(at)gmail(dot)com, pgsql-hackers(at)postgresql(dot)org, zsolt(dot)parragi(at)percona(dot)com, sjjang112233(at)gmail(dot)com, vik(at)postgresfriends(dot)org, er(at)xs4all(dot)nl, jacob(dot)champion(at)enterprisedb(dot)com, david(dot)g(dot)johnston(at)gmail(dot)com, peter(at)eisentraut(dot)org, li(dot)evan(dot)chao(at)gmail(dot)com |
| Subject: | Re: Row pattern recognition |
| Date: | 2026-06-26 02:32:16 |
| Message-ID: | 20260626.113216.216176141793932743.ishii@postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Hi Henson,
> Hi all,
>
> A quick heads-up for this thread, cross-referenced from another one.
>
> Haibo Yan has a patch series adding DISTINCT support to plain aggregate
> window functions [1]. As it touches window-aggregate frame handling, I
> applied it on top of the current RPR patch set and built the two together.
> They combine cleanly today: no rebase conflict, and the regression tests
> pass with no change to code or tests.
>
> This is structural, not luck. RPR requires the frame to start at CURRENT
> ROW, while that feature requires UNBOUNDED PRECEDING, so a single window can
> satisfy at most one of them -- no overlap.
>
> That said, the DISTINCT roadmap plans to relax its UNBOUNDED-PRECEDING
> restriction (the sliding-frame patches), while RPR's CURRENT-ROW requirement
> is fixed by the standard. So as those frame restrictions are lifted the two
> could start to overlap, and at that point we'd likely need to review the
> related frame-handling changes together. Nothing to act on now -- just
> flagging it so we keep an eye on it.
>
> Full review of the DISTINCT series is in the other thread [1].
>
> [1]
> https://www.postgresql.org/message-id/CAAAe_zCfVbNrOUF5FaE38EcwYbtXacThR9xdVe2UJJPeDSL2KA@mail.gmail.com
Thanks for letting know us!
--
Tatsuo Ishii
SRA OSS K.K.
English: http://www.sraoss.co.jp/index_en/
Japanese:http://www.sraoss.co.jp
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tatsuo Ishii | 2026-06-26 02:35:05 | Re: Row pattern recognition |
| Previous Message | Kyotaro Horiguchi | 2026-06-26 02:31:38 | Re: Handle concurrent drop when doing whole database vacuum |