Adjust OR indexscan logic to not generate redundant condition-free OR

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 95871703e395889fd371ce6604b68617d33b32a4
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2005-03-01T01:40:05Z
Releases: 8.1.0
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.

Files

PathChange+/−
src/backend/optimizer/path/orindxpath.c modified +8 −4