]> granicus.if.org Git - postgresql/commit
Tweak choose_bitmap_and() heuristics in the light of example provided in bug
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 30 Nov 2005 17:10:19 +0000 (17:10 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 30 Nov 2005 17:10:19 +0000 (17:10 +0000)
commitbae3fefd4aecec5cbe94c1d67804f6ba7df0a203
tree7bb0930f443446d77dc966c649dd8406516c9e24
parent150131d9d9208d53abbd63052866ab663ab1855e
Tweak choose_bitmap_and() heuristics in the light of example provided in bug
#2075: consider an index redundant if any of its index conditions were already
used, rather than if all of them were.  Also, make the selectivity comparison
a bit fuzzy, so that very small differences in estimated selectivities don't
skew the results.
src/backend/optimizer/path/indxpath.c