Re: another optimizer question

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: another optimizer question
Дата
Msg-id 11691.1019140286@sss.pgh.pa.us
обсуждение исходный текст
Ответ на another optimizer question  (Jakub Ouhrabka <jouh8664@ss1000.ms.mff.cuni.cz>)
Список pgsql-hackers
Jakub Ouhrabka <jouh8664@ss1000.ms.mff.cuni.cz> writes:
> can anyone explain me why there are different query plans for "select ...
> from ... where y!=x"  and "select ... from ... where y<x or y>x" for
> integers, please?

!= isn't an indexable operation.  This is not the planner's fault, but
a consequence of the index opclass design we inherited from Berkeley.
I suppose we could make it an indexable operation --- but there are so
few cases where it'd be a win that I'm not excited about it.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: new food for the contrib/ directory
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: timeout implementation issues