Re: sum() over (partition by order) question - Mailing list pgsql-hackers

From Tom Lane
Subject Re: sum() over (partition by order) question
Date
Msg-id 15835.1230761183@sss.pgh.pa.us
Whole thread Raw
In response to Re: sum() over (partition by order) question  ("Pavel Stehule" <pavel.stehule@gmail.com>)
Responses Re: sum() over (partition by order) question
Re: sum() over (partition by order) question
List pgsql-hackers
"Pavel Stehule" <pavel.stehule@gmail.com> writes:
> so I have to modify query to get expected values
> postgres=# select a, b, last_value(a) over (partition by b),
> last_value(a) over (partition by b order by a  RANGE BETWEEN UNBOUNDED
> PRECEDING AND UNBOUNDED FOLLOWING) from foo;

> it should be noticed in doc?

It is --- see the comments at the bottom of

http://developer.postgresql.org/pgdocs/postgres/functions-window.html
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: sum() over (partition by order) question
Next
From: "Pavel Stehule"
Date:
Subject: Re: sum() over (partition by order) question