Re: ORDER BY clause in aggregate doesn't work well with multi argument aggregates

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: ORDER BY clause in aggregate doesn't work well with multi argument aggregates
Date: 2009-12-25 18:43:52
Message-ID: 7949.1261766632@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Pavel Stehule <pavel(dot)stehule(at)gmail(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Pavel Stehule 2009-12-25 18:54:27 Re: info about patch: using parametrised query in psql
Previous Message Tom Lane 2009-12-25 18:41:06 Re: info about patch: using parametrised query in psql