Re: Scan Keys

Поиск
Список
Период
Сортировка
От Greg Stark
Тема Re: Scan Keys
Дата
Msg-id 871wszpmaa.fsf@stark.xeocode.com
обсуждение исходный текст
Ответ на Re: Scan Keys  (Martijn van Oosterhout <kleptog@svana.org>)
Ответы Re: Scan Keys  (Martijn van Oosterhout <kleptog@svana.org>)
Список pgsql-hackers
Martijn van Oosterhout <kleptog@svana.org> writes:

> The info you need is in the operator class. In a sense you do need to
> know the type of index you're scanning, not all indexes use the same
> strategy numbers.

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.

-- 
greg



В списке pgsql-hackers по дате отправления:

Предыдущее
От: "Joshua D. Drake"
Дата:
Сообщение: Re: lastval exposes information that currval does not
Следующее
От: "Gourish Singbal"
Дата:
Сообщение: unsubscribe