"Pavel Stehule" <pavel(dot)stehule(at)gmail(dot)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
In response to
pgsql-hackers by date
|Next:||From: Tom Lane||Date: 2008-12-31 21:45:57|
|Subject: Re: reloptions and toast tables |
|Previous:||From: Pavel Stehule||Date: 2008-12-31 21:34:08|
|Subject: sum() over (partition by order) question|