public inbox for [email protected]
help / color / mirror / Atom feedFrom: Henson Choi <[email protected]>
To: jian he <[email protected]>
To: Tatsuo Ishii <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Subject: Re: Row pattern recognition
Date: Fri, 26 Jun 2026 10:23:53 +0900
Message-ID: <CAAAe_zBAwUbzahW3wFM+toS6Ap565j1q9SOa0irhYSRTujGbyA@mail.gmail.com> (raw)
In-Reply-To: <CAAAe_zAjkjUZHMqu5DjgZH9ZZ6D5v4bBJy60ziwhHRoohnB7Zg@mail.gmail.com>
References: <[email protected]>
<[email protected]>
<CAAAe_zCsaf=WedELLjqLe3BV_8dWiO1DPDGA9sXj4qhe+=-XXw@mail.gmail.com>
<[email protected]>
<CAAAe_zChW=nM9J18wdF2wMa2KesFO53fkbVRudkJ_bstdxzfOQ@mail.gmail.com>
<CAAAe_zADXbf9aGu-54RTRJPhxYmA1gb_8GV94Q0gAftfv79pjA@mail.gmail.com>
<CAAAe_zDR8XqOfYL1ay5o6Y2OogJNed3oR+aG=Hm1Ja=t=v6=bw@mail.gmail.com>
<CACJufxHJG_FWo2e+jyG9ynfE0+65eEWA_6qq1mEJO1z3G2V8Hg@mail.gmail.com>
<CACJufxE80E13g575_ywVjDat-Lmmx3WkukzqRvb936P0jA4h6w@mail.gmail.com>
<CAAAe_zAjkjUZHMqu5DjgZH9ZZ6D5v4bBJy60ziwhHRoohnB7Zg@mail.gmail.com>
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/[email protected]...
Best,
Henson
view thread (181+ messages) latest in thread
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]
Subject: Re: Row pattern recognition
In-Reply-To: <CAAAe_zBAwUbzahW3wFM+toS6Ap565j1q9SOa0irhYSRTujGbyA@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox