Index not used with IS NULL

Поиск
Список
Период
Сортировка
От Nick Wellnhofer
Тема Index not used with IS NULL
Дата
Msg-id 3E3C34CC.60204@aevum.de
обсуждение исходный текст
Ответы Re: Index not used with IS NULL
Список pgsql-general
If I have a query like

SELECT * FROM table WHERE key IS NULL

and an index on column "key", a sequential scan is used. A query like

SELECT * FROM table WHERE key=123

uses an index scan. This is slowing down some queries in my current
project. Why aren't the NULL columns indexed? Is there a work-around?

Nick


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

Предыдущее
От: "news.verizon.net"
Дата:
Сообщение: Re: Problem starting a session
Следующее
От: Guy Fraser
Дата:
Сообщение: Re: 2D arrays in 7.3... actually, parser bug?