Re: Scan Keys

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: Greg Stark <gsstark(at)mit(dot)edu>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Scan Keys
Date: 2006-07-06 10:27:25
Message-ID: 20060706102725.GA20946@svana.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, Jul 05, 2006 at 09:14:21PM -0400, Greg Stark wrote:
> Well what was tripping me up was figuring out the operator class. I just
> realized it's in the index's Relation object.
>
> But yes what you describe is really a problem. Even given the operator class
> there's no way for me to know which strategy number to pick. There might not
> be any strategy number for equals in which case I'm in trouble.

Well yes, that's an issue. Currently it's assumed by various parts of
the backend that the EqualStrategy operator of a btree operator class
is what you can use to decide what's equal. Although it's not really
necessary, there is currently nothing else in the system that really
tells you the answer to the question you ask...

Have a nice day,
--
Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Leandro Oliveri 2006-07-06 13:54:12 unsubscribe
Previous Message Gourish Singbal 2006-07-06 09:03:42 unsubscribe