public inbox for [email protected]
help / color / mirror / Atom feedMultiple window definitions
2+ messages / 2 participants
[nested] [flat]
* Multiple window definitions
@ 2020-01-08 18:20 PG Doc comments form <[email protected]>
0 siblings, 1 reply; 2+ messages in thread
From: PG Doc comments form @ 2020-01-08 18:20 UTC (permalink / raw)
To: [email protected]; +Cc: [email protected]
The following documentation comment has been logged on the website:
Page: https://www.postgresql.org/docs/11/sql-select.html
Description:
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.
Please either explain how to make it work (perhaps with an example) or if
it's not supported remove the [, ...]
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Multiple window definitions
@ 2020-01-08 22:41 Tom Lane <[email protected]>
parent: PG Doc comments form <[email protected]>
0 siblings, 0 replies; 2+ messages in thread
From: Tom Lane @ 2020-01-08 22:41 UTC (permalink / raw)
To: [email protected]; +Cc: [email protected]
PG Doc comments form <[email protected]> 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
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2020-01-08 22:41 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-01-08 18:20 Multiple window definitions PG Doc comments form <[email protected]>
2020-01-08 22:41 ` Tom Lane <[email protected]>
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox