Re: null values / partial indices

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: null values / partial indices
Дата
Msg-id 21444.1037198626@sss.pgh.pa.us
обсуждение исходный текст
Ответ на null values / partial indices  ("Mario Weilguni" <mario.weilguni@icomedias.com>)
Список pgsql-hackers
"Mario Weilguni" <mario.weilguni@icomedias.com> writes:
> I noticed that the planner is unable to select an index scan when a partial
> index is available, the partial index is based on a "NOT NULL" condition.

It wants you to do this:

select id from str where url='foobar' and url is not null;

I know and you know that "url='foobar'" implies url is not null,
but the code that checks for applicability of partial indexes is not
that bright.
        regards, tom lane


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

Предыдущее
От: Rod Taylor
Дата:
Сообщение: Re: pg_dump in 7.4
Следующее
От: Tom Lane
Дата:
Сообщение: Re: RC1?