> Yeah. The ORDER BY creates a partial optimization fence, preventing
> any such plan from being considered.
>>
I can see in the general case it semanticly means different things If you allow the WHERE to pass through ORDER BY.
A special case can be allowed for WHERE to pass the ORDER BY if the column is part of DISTINCT ON.
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general