Re: POC, WIP: OR-clause support for indexes

Поиск
Список
Период
Сортировка
От Teodor Sigaev
Тема Re: POC, WIP: OR-clause support for indexes
Дата
Msg-id 567EE99F.8040607@sigaev.ru
обсуждение исходный текст
Ответ на Re: POC, WIP: OR-clause support for indexes  (Feng Tian <ftian@vitessedata.com>)
Список pgsql-hackers
> This is great.   I got a question, is it possible make btree index to support OR
> as well?  Is btree supports more invasive, in the sense that we need to do
> enhance ScanKey to supports an array of values?
Btree now works by follow: find the max/min tuple which satisfies condtions and 
then executes forward/backward scan over leaf pages. For complicated clauses 
it's not obvious how to find min/max tuple. Scanning whole index isn't an option 
from preformance point of view.

-- 
Teodor Sigaev                                   E-mail: teodor@sigaev.ru
  WWW: http://www.sigaev.ru/
 



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

Предыдущее
От: Feng Tian
Дата:
Сообщение: Re: POC, WIP: OR-clause support for indexes
Следующее
От: Joe Conway
Дата:
Сообщение: Re: exposing pg_controldata and pg_config as functions