postgresql/src/backend/optimizer/path
Tom Lane eed57b1b92 Fix choose_bitmap_and() so that partial index predicates are considered when
deciding whether a potential additional indexscan is redundant or not.  As now
coded, any use of a partial index that was already used in a previous AND arm
will be rejected as redundant.  This might be overly restrictive, but not
considering the point at all is definitely bad, as per example in bug #2441
from Arjen van der Meijden.  In particular, a clauseless scan of a partial
index was *never* considered redundant by the previous coding, and that's
surely wrong.  Being more flexible would also require some consideration
of how not to double-count the index predicate's selectivity.
2006-05-18 19:56:46 +00:00
..
Makefile $Header: -> $PostgreSQL Changes ... 2003-11-29 19:52:15 +00:00
allpaths.c Avoid assuming that statistics for a parent relation reflect the properties of 2006-05-02 04:34:18 +00:00
clausesel.c Remove the stub support we had for UNION JOIN; per discussion, this is 2006-03-07 01:00:19 +00:00
costsize.c Update copyright for 2006. Update scripts. 2006-03-05 15:59:11 +00:00
indxpath.c Fix choose_bitmap_and() so that partial index predicates are considered when 2006-05-18 19:56:46 +00:00
joinpath.c Update copyright for 2006. Update scripts. 2006-03-05 15:59:11 +00:00
joinrels.c Update copyright for 2006. Update scripts. 2006-03-05 15:59:11 +00:00
orindxpath.c Update copyright for 2006. Update scripts. 2006-03-05 15:59:11 +00:00
pathkeys.c Update copyright for 2006. Update scripts. 2006-03-05 15:59:11 +00:00
tidpath.c Update copyright for 2006. Update scripts. 2006-03-05 15:59:11 +00:00