Re: Index usage for sorted query

Поиск
Список
Период
Сортировка
От Pierre-Frédéric Caillaud
Тема Re: Index usage for sorted query
Дата
Msg-id opshrtzhakcq72hf@musicbox
обсуждение исходный текст
Ответ на Index usage for sorted query  (Markus Schaber <schabios@logi-track.com>)
Ответы Re: Index usage for sorted query
Список pgsql-performance
Instead of :

> WHERE cd='ca' ORDER BY l_postcode;

Write :

> WHERE cd='ca' ORDER BY cd, l_postcode;

You have a multicolumn index, so you should specify a multicolumn sort
exactly the same as your index, and the planner will get it.

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

Предыдущее
От: Markus Schaber
Дата:
Сообщение: Index usage for sorted query
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Index usage for sorted query