Re: Window Function "Run Conditions"

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: David Rowley <dgrowleyml(at)gmail(dot)com>
Cc: Corey Huinker <corey(dot)huinker(at)gmail(dot)com>, Greg Stark <stark(at)mit(dot)edu>, Andy Fan <zhihui(dot)fan1213(at)gmail(dot)com>, Zhihong Yu <zyu(at)yugabyte(dot)com>, PostgreSQL Developers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Window Function "Run Conditions"
Date: 2022-03-23 05:09:27
Message-ID: CAKFQuwYwoqT06QGr5kEpCbCfKG9LZ1bDKuuwOVwxrU1aOi4LUA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Mar 22, 2022 at 3:39 PM David Rowley <dgrowleyml(at)gmail(dot)com> wrote:

> On Thu, 17 Mar 2022 at 17:04, Corey Huinker <corey(dot)huinker(at)gmail(dot)com>
> wrote:
> > It seems like this effort would aid in implementing what some other
> databases implement via the QUALIFY clause, which is to window functions
> what HAVING is to aggregate functions.
> > example:
> https://cloud.google.com/bigquery/docs/reference/standard-sql/query-syntax#qualify_clause
>
> Isn't that just syntactic sugar? You could get the same from adding a
> subquery where a WHERE clause to filter rows evaluated after the
> window clause.
>
>
I'd like some of that syntactic sugar please. It goes nicely with my
HAVING syntactic coffee.

David J.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Kyotaro Horiguchi 2022-03-23 05:20:07 Re: [PATCH] Accept IP addresses in server certificate SANs
Previous Message Japin Li 2022-03-23 05:09:10 Re: Support logical replication of DDLs