Re: Multiple window definitions

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: michael(dot)brook(at)gfk(dot)com
Cc: pgsql-docs(at)lists(dot)postgresql(dot)org
Subject: Re: Multiple window definitions
Date: 2020-01-08 22:41:19
Message-ID: 1928.1578523279@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

PG Doc comments form <noreply(at)postgresql(dot)org> writes:
> According to the spec:
> [ WINDOW window_name AS ( window_definition ) [, ...] ]
> So the ... means I can have more than one named window. But I can't make
> this work on 11.5.

It's supposed to be WINDOW w1 AS (...), w2 AS (...), ...
ie don't repeat the WINDOW keyword.

If that wasn't the issue, you need to show more specifically what
you tried.

I agree that the syntax definition isn't terribly precise, but
people don't seem to have trouble with the very comparable
rules for, say, FROM or GROUP BY.

regards, tom lane

In response to

Browse pgsql-docs by date

  From Date Subject
Next Message Jonathan S. Katz 2020-01-08 23:21:53 Re: Postgres.js driver - for Node.js
Previous Message PG Doc comments form 2020-01-08 20:07:08 SE-Linux mispelled