• T
    Fix choose_bitmap_and() so that partial index predicates are considered when · eed57b1b
    Tom Lane 提交于
    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.
    eed57b1b
indxpath.c 85.5 KB