public inbox for [email protected]  
help / color / mirror / Atom feed
From: David Rowley <[email protected]>
To: [email protected]
To: [email protected]
Subject: Re: BUG #19535: Splitting window input targets can break same-level SRF lockstep semantics
Date: Tue, 30 Jun 2026 11:32:52 +1200
Message-ID: <CAApHDvruxTGmMkXBTiu7B_=SgeeqTMJKmB6JOdsb6wWBR9U_TQ@mail.gmail.com> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>

On Sun, 28 Jun 2026 at 00:55, PG Bug reporting form
<[email protected]> wrote:
> ## Actual Behavior
>
> The query returns four rows instead of two:
>
> ```text
> 1 | 1 | 11
> 1 | 1 | 12
> 1 | 2 | 11
> 1 | 2 | 12
> ```
>
> The plan shows one `ProjectSet` below `WindowAgg` and another above it,
> which breaks same-level SRF lockstep semantics.

Thanks for the report.  This is the same as what was discussed in bug
#17502.  There was a patch there to disallow SRFs in the WindowClause.
I believe it was intended to go into master only, but that wasn't
done.

David

[1] https://postgr.es/m/flat/17502-281a7aaacfaa872a%40postgresql.org






view thread (2+ messages)

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]
  Subject: Re: BUG #19535: Splitting window input targets can break same-level SRF lockstep semantics
  In-Reply-To: <CAApHDvruxTGmMkXBTiu7B_=SgeeqTMJKmB6JOdsb6wWBR9U_TQ@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