Thread: pgsql: Adjust OR indexscan logic to not generate redundant

pgsql: Adjust OR indexscan logic to not generate redundant

From
tgl@svr1.postgresql.org (Tom Lane)
Date:
Log Message:
-----------
Adjust OR indexscan logic to not generate redundant condition-free OR
indexscans involving partial indexes.  These would always be dominated
by a simple indexscan on such an index, so there's no point in considering
them.  Fixes overoptimism in a patch I applied last October.

Modified Files:
--------------
    pgsql/src/backend/optimizer/path:
        orindxpath.c (r1.64 -> r1.65)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/optimizer/path/orindxpath.c.diff?r1=1.64&r2=1.65)