Re: Selectivity of "=" (Re: [HACKERS] Index not used on simple se lect)

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Selectivity of "=" (Re: [HACKERS] Index not used on simple se lect)
Дата
Msg-id 9731.933171407@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Selectivity of "=" (Re: [HACKERS] Index not used on simple se lect)  (Zeugswetter Andreas IZ5 <Andreas.Zeugswetter@telecom.at>)
Список pgsql-hackers
Zeugswetter Andreas IZ5 <Andreas.Zeugswetter@telecom.at> writes:
>> Yes, I think we index nulls.  What are partial indexes?
>> 
> A create index statement that accepts a where condition. All
> rows that satisfy the where condition are indexed, others not.
> This needs intelligence in the optimizer.

> This was in postgresql code some time ago, but was removed
> for some reason I don't remember.

It was?  There's still a ton of code in the optimizer to support it
(a big chunk of indxqual.c is for testing index predicates).
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [HACKERS] Checking if a system is ELF
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [HACKERS] SELECT FOR UPDATE in (PL/pgSQL) function