Re: comparing index columns - Mailing list pgsql-hackers

From Tom Lane
Subject Re: comparing index columns
Date
Msg-id 5474.1181657972@sss.pgh.pa.us
Whole thread Raw
In response to comparing index columns  ("Pavan Deolasee" <pavan.deolasee@gmail.com>)
Responses Re: comparing index columns
List pgsql-hackers
"Pavan Deolasee" <pavan.deolasee@gmail.com> writes:
> I don't have much insight into the operator classes and operator families
> and how they work. Where should I look for the related code ?

Primary opclass members are stored right in the Relation data struct for
you.  Since (I trust) you're only supporting this for btree, you could
just use rd_supportinfo[0] which will not even cost an fmgr lookup.
See index_getprocinfo() and callers.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Zdenek Kotala
Date:
Subject: Re: Command tags in create/drop scripts
Next
From: Alvaro Herrera
Date:
Subject: regress changes