> Can you provide some more details about the objective of this patch? Or
> a link to previous discussion?
Suppose, Greg's patch could be modified to support order OR index scans:
SELECT ... WHERE (c > 10 AND c < 20) OR (c > 100 AND C < 110) ORDER BY c DESC
with plan:
Result -> Append -> Backward index scan (c > 100 AND C < 110) -> Backward index scan (c > 10 AND C < 20)
I suggested a similar patch two years ago:
http://archives.postgresql.org/message-id/45742C51.9020602@sigaev.ru (4-th
point) and subsequent discussion
http://archives.postgresql.org/pgsql-patches/2006-12/msg00029.php
--
Teodor Sigaev E-mail: teodor@sigaev.ru
WWW: http://www.sigaev.ru/