match_clause_to_indexcol() - Mailing list pgsql-hackers

From Robert Haas
Subject match_clause_to_indexcol()
Date
Msg-id AANLkTi=N5HmUgWox3JJerxT-cwZtgwcu4dbHiVdF-LrA@mail.gmail.com
Whole thread Raw
Responses Re: match_clause_to_indexcol()
List pgsql-hackers
I was looking at KNNGIST some more today and found myself trying to
disentangle what match_clause_to_indexcol() is actually doing.  It
appears to me that the opfamily passed to that function is always the
same as index->opfamily[indexcol], which seems like needless
notational complexity.  Maybe I'm missing something, but the attached
patch seems to make things simpler and clearer.  Thoughts?

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

Attachment

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [PATCH] Custom code int(32|64) => text conversions out of performance reasons
Next
From: Tom Lane
Date:
Subject: Re: match_clause_to_indexcol()