Re: Sorting a query on a view ignores an index

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Sorting a query on a view ignores an index
Дата
Msg-id 8509.1061477951@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Sorting a query on a view ignores an index  (Mathieu De Zutter <mathieu@dezutter.org>)
Ответы Re: Sorting a query on a view ignores an index  (Mathieu De Zutter <mathieu@dezutter.org>)
Список pgsql-performance
Mathieu De Zutter <mathieu@dezutter.org> writes:
> However, i dont want the view to be presorted, but sort it in the
> queries that use the view. When I do that, the index I have on that
> field seems to be ignored. It stretches so far that, when I sort the
> view on A and sort the query on A too, the query will try to sort
> _again_ _without_ index and thus lose all performance.

This is a limitation of the 7.3 query planner.  7.4 should do better.

            regards, tom lane

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

Предыдущее
От: "Shridhar Daithankar"
Дата:
Сообщение: Re: Tests
Следующее
От: Mathieu De Zutter
Дата:
Сообщение: Re: Sorting a query on a view ignores an index