Re: Index usage for sorted query

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Index usage for sorted query
Дата
Msg-id 21432.1100969296@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Index usage for sorted query  (Markus Schaber <schabios@logi-track.com>)
Список pgsql-performance
Markus Schaber <schabios@logi-track.com> writes:
> But as it fetches all the rows through the index, why doesn't it
> recognize that, fetching this way, the rows are already sorted by
> l_postcode?

Tell it to "ORDER BY cd, l_postcode".

> Is Postgresql 8 more intelligend in this case?

No.

            regards, tom lane

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

Предыдущее
От: Pierre-Frédéric Caillaud
Дата:
Сообщение: Re: Index usage for sorted query
Следующее
От: Josh Berkus
Дата:
Сообщение: Re: tablespace + RAM disk?