Re: [HACKERS] comparing index columns

2007-06-13 Thread Tom Lane
Heikki Linnakangas <[EMAIL PROTECTED]> writes: > How about just doing a memcmp? That would be safe, simple and fast and > covers all interesting use cases. You'd have to use datumIsEqual() or equivalent, and figure out what to do about nulls. I think it'd work though, at least for the purposes t

Re: [HACKERS] comparing index columns

2007-06-13 Thread Heikki Linnakangas
Tom Lane wrote: "Pavan Deolasee" <[EMAIL PROTECTED]> 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) yo

Re: [HACKERS] comparing index columns

2007-06-12 Thread Tom Lane
"Pavan Deolasee" <[EMAIL PROTECTED]> 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 suppor