2009/12/25 Tom Lane <[email protected]>:
> Pavel Stehule <[email protected]> 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.
>
I was wrong. But it should be syntax error no?
SELECT foo(expr ORDER BY expr, .....)
currently it quietly ignore arguments over ORDER BY clause.
Pavel
> regards, tom lane
>