Re: BUG #17502: View based on window functions returns wrong results when queried

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: David Rowley <dgrowleyml(at)gmail(dot)com>
Cc: Richard Guo <guofenglinux(at)gmail(dot)com>, Daniel Farkaš <daniel(dot)farkas(at)datoris(dot)com>, Magnus Hagander <magnus(at)hagander(dot)net>, PostgreSQL mailing lists <pgsql-bugs(at)lists(dot)postgresql(dot)org>
Subject: Re: BUG #17502: View based on window functions returns wrong results when queried
Date: 2026-06-30 02:27:05
Message-ID: 2450292.1782786425@sss.pgh.pa.us
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

David Rowley <dgrowleyml(at)gmail(dot)com> writes:
> On Tue, 31 Jan 2023 at 11:53, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>> This bug seems to have slipped off the radar screen, but it's still
>> a bug. I continue to believe that the best fix is to disallow SRFs
>> in window definitions, and present the trivial patch to do so.
>> As discussed, I'm comfortable with leaving this alone in the back
>> branches.

> There has been another report about this in bug #19535. Should we
> consider going with disallowing SRFs in the WindowClause for v19?

Yeah, that slipped off the radar screen *again*. Let's disallow
SRFs in WindowClauses in HEAD and v19, and see if anyone complains.

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Previous Message David Rowley 2026-06-29 23:35:19 Re: BUG #17502: View based on window functions returns wrong results when queried