Re: ORDER BY clause in aggregate doesn't work well with multi argument aggregates - Mailing list pgsql-hackers

From Tom Lane
Subject Re: ORDER BY clause in aggregate doesn't work well with multi argument aggregates
Date
Msg-id 7949.1261766632@sss.pgh.pa.us
Whole thread Raw
In response to ORDER BY clause in aggregate doesn't work well with multi argument aggregates  (Pavel Stehule <pavel.stehule@gmail.com>)
Responses Re: ORDER BY clause in aggregate doesn't work well with multi argument aggregates  (Pavel Stehule <pavel.stehule@gmail.com>)
Re: ORDER BY clause in aggregate doesn't work well with multi argument aggregates  (Pavel Stehule <pavel.stehule@gmail.com>)
List pgsql-hackers
Pavel Stehule <pavel.stehule@gmail.com> writes:
> It is maybe a bug. I cannot use ORDER BY clause in two parameter aggregate.

I think you don't understand the syntax.  Put the aggregate arguments
first, then the ORDER BY.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: info about patch: using parametrised query in psql
Next
From: Pavel Stehule
Date:
Subject: Re: info about patch: using parametrised query in psql