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

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

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