Eivind Kvedalen <eivindkv(at)ifi(dot)uio(dot)no> writes:
> Ok. What I actually had in mind was whether the optimizer would remove the
> ORDER BY clause completely or not,
No. If you put an ORDER BY in a subselect, I think the system should
honor it.
regards, tom lane