Re: Why date index is not used

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Why date index is not used
Дата
Msg-id 196.1149794455@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Why date index is not used  ("Andrus" <eetasoft@online.ee>)
Ответы Re: Why date index is not used  ("Jim C. Nasby" <jnasby@pervasive.com>)
Список pgsql-performance
"Andrus" <eetasoft@online.ee> writes:
> Why Postgres 8.1 does not use makse_kuupaev_idx index in the following query
> ?

Because it doesn't help --- the system still has to do the sort.
You'd need a two-column index on both of the ORDER BY columns to avoid
sorting.

            regards, tom lane

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

Предыдущее
От: Tomas Vondra
Дата:
Сообщение: Re: Why date index is not used
Следующее
От: "Dave Dutcher"
Дата:
Сообщение: Re: Why date index is not used