Re: Index not used with IS NULL

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Index not used with IS NULL
Дата
Msg-id 15819.1044566327@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Index not used with IS NULL  (Nick Wellnhofer <wellnhofer@aevum.de>)
Ответы Re: Index not used with IS NULL
Список pgsql-general
Nick Wellnhofer <wellnhofer@aevum.de> writes:
> If I have a query like
> SELECT * FROM table WHERE key IS NULL
> and an index on column "key", a sequential scan is used.

IS NULL is not an indexable operator.

I suggest reconsidering your data representation, as this is unlikely to
change soon...

            regards, tom lane

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

Предыдущее
От: Greg Stark
Дата:
Сообщение: optimizer not eliminating redundant sorts
Следующее
От: "Fernando Papa"
Дата:
Сообщение: Re: pg_temp schemas