Re: will the planner ever use an index when the condition is <> ?

Поиск
Список
Период
Сортировка
От Віталій Тимчишин
Тема Re: will the planner ever use an index when the condition is <> ?
Дата
Msg-id CABWW-d1r9Doya=ntE5U+5o8Hj2W0WuiKvNeYsEyEecaj4mb=fg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: will the planner ever use an index when the condition is <> ?  (Filip Rembiałkowski <plk.zuber@gmail.com>)
Список pgsql-performance


17.12.2011 18:25 пользователь "Filip Rembiałkowski" <plk.zuber@gmail.com> написал:
>
> Normally there is no chance it could work,
> because (a) the planner does not know all possible values of a column,
> and (b) btree indexes cannot search on "not equal" operator.
>

Why so? a<>b is same as (a<b or a>b), so, planner should chech this option.

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

Предыдущее
От: Filip Rembiałkowski
Дата:
Сообщение: Re: will the planner ever use an index when the condition is <> ?
Следующее
От: Roxanne Reid-Bennett
Дата:
Сообщение: Re: will the planner ever use an index when the condition is <> ?