Re: Planner regression in 9.1: min(x) cannot use partial index with NOT NULL

Поиск
Список
Период
Сортировка
От Kevin Grittner
Тема Re: Planner regression in 9.1: min(x) cannot use partial index with NOT NULL
Дата
Msg-id 4D8734E2020000250003BBAE@gw.wicourts.gov
обсуждение исходный текст
Ответы Re: Planner regression in 9.1: min(x) cannot use partial index with NOT NULL  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Planner regression in 9.1: min(x) cannot use partial index with NOT NULL  (Greg Stark <gsstark@mit.edu>)
Список pgsql-hackers
Robert Haas  wrote:
> Tom Lane  wrote:
>> I don't think that suppressing nulls from an index this way is
>> really very useful. Using a partial index probably eats more
>> planner cycles than you'll save, overall.
> 
> If only 1% of the table has non-NULL values in that column, maybe
> not.
We definitely have indexes with less than 1% non-NULL, and we've
found partial indexes to be efficient for them.  On the other hand,
I can't think where we do min/max on any of them; so as long as this
regression only affects those aggregates, it won't hurt our shop.
The use case doesn't seem all that far-fetched to me, though.
-Kevin




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

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: Re: 2nd Level Buffer Cache
Следующее
От: Yeb Havinga
Дата:
Сообщение: Re: Sync Rep and shutdown Re: Sync Rep v19