pgsql: Skip opfamily check in eclass_matches_any_index() when the index - Mailing list pgsql-committers

From tgl@postgresql.org (Tom Lane)
Subject pgsql: Skip opfamily check in eclass_matches_any_index() when the index
Date
Msg-id 20080912145613.9088C7545A3@cvs.postgresql.org
Whole thread Raw
List pgsql-committers
Log Message:
-----------
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.

Modified Files:
--------------
    pgsql/src/backend/optimizer/path:
        indxpath.c (r1.232 -> r1.233)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/optimizer/path/indxpath.c?r1=1.232&r2=1.233)

pgsql-committers by date:

Previous
From: dpage@pgfoundry.org (Dave Page)
Date:
Subject: stackbuilder - wizard: New icon
Next
From: tgl@postgresql.org (Tom Lane)
Date:
Subject: pgsql: Skip opfamily check in eclass_matches_any_index() when the index