diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2006-05-18 19:56:46 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2006-05-18 19:56:46 +0000 |
commit | eed57b1b9259ee7cf95c022b39cddde3ee4604a9 (patch) | |
tree | 8168977e07b352ea2f57ac2dda6cd9d4a360d8cb /src/backend/access/gist/gistxlog.c | |
parent | f32325264273e5d101064a7133aa5a3d90b0ad34 (diff) | |
download | postgresql-eed57b1b9259ee7cf95c022b39cddde3ee4604a9.tar.gz postgresql-eed57b1b9259ee7cf95c022b39cddde3ee4604a9.zip |
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.
Diffstat (limited to 'src/backend/access/gist/gistxlog.c')
0 files changed, 0 insertions, 0 deletions