Re: will the planner ever use an index when the condition is <> ? - Mailing list pgsql-performance

From Віталій Тимчишин
Subject Re: will the planner ever use an index when the condition is <> ?
Date
Msg-id CABWW-d1r9Doya=ntE5U+5o8Hj2W0WuiKvNeYsEyEecaj4mb=fg@mail.gmail.com
Whole thread Raw
In response to Re: will the planner ever use an index when the condition is <> ?  (Filip Rembiałkowski <plk.zuber@gmail.com>)
List 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 by date:

Previous
From: Filip Rembiałkowski
Date:
Subject: Re: will the planner ever use an index when the condition is <> ?
Next
From: Roxanne Reid-Bennett
Date:
Subject: Re: will the planner ever use an index when the condition is <> ?