Re: MAX() and multi-column index on a partitioned table?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: MAX() and multi-column index on a partitioned table?
Дата
Msg-id 17857.1432334536@sss.pgh.pa.us
обсуждение исходный текст
Ответ на MAX() and multi-column index on a partitioned table?  (Dave Johansen <davejohansen@gmail.com>)
Ответы Re: MAX() and multi-column index on a partitioned table?  (Dave Johansen <davejohansen@gmail.com>)
Список pgsql-performance
Dave Johansen <davejohansen@gmail.com> writes:
> I'm trying to call MAX() on the first value of a multi-column index of a
> partitioned table and the planner is choosing to do a sequential scan
> instead of an index scan. Is there something I can do to fix this?

What PG version are you using?  9.1 or newer should know how to do this
with a merge append of several indexscans.

            regards, tom lane


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

Предыдущее
От: Dave Johansen
Дата:
Сообщение: MAX() and multi-column index on a partitioned table?
Следующее
От: Dave Johansen
Дата:
Сообщение: Re: MAX() and multi-column index on a partitioned table?