]> granicus.if.org Git - postgresql/commit
Skip opfamily check in eclass_matches_any_index() when the index isn't a
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 12 Sep 2008 14:56:19 +0000 (14:56 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 12 Sep 2008 14:56:19 +0000 (14:56 +0000)
commite5b1eed7c916bbe747ee86da815ebe4ea8bdd643
tree0a143cc90fd62359154d45d9322e86a11dabd5dc
parent2d4ef572b42eb8062f895db441d319bc1b136aeb
Skip opfamily check in eclass_matches_any_index() when the index isn't a
btree.  We can't easily tell whether clauses generated from the equivalence
class could be used with such an index, so just assume that they might be.
This bit of over-optimization prevented use of non-btree indexes for nestloop
inner indexscans, in any case where the join uses an equality operator that
is also a btree operator --- which in particular is typically true for hash
indexes.  Noted while trying to test the current hash index patch.
src/backend/optimizer/path/indxpath.c