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 15528.1230759387@sss.pgh.pa.us
Whole thread Raw
In response to sum() over (partition by order) question  ("Pavel Stehule" <pavel.stehule@gmail.com>)
Responses Re: sum() over (partition by order) question  ("Pavel Stehule" <pavel.stehule@gmail.com>)
List pgsql-hackers
"Pavel Stehule" <pavel.stehule@gmail.com> writes:
> I didn't expect so ORDER can change result of function sum.

Read the stuff about window frames.  The results you show are
exactly per spec.
        regards, tom lane


pgsql-hackers by date:

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