Pavel Stehule <pavel.stehule@gmail.com> writes:
> 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.
No, because you could have more than one ORDER BY item.
regards, tom lane