Re: Sorting a query on a view ignores an index

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Mathieu De Zutter <mathieu(at)dezutter(dot)org>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Sorting a query on a view ignores an index
Date: 2003-08-21 14:59:11
Message-ID: 8509.1061477951@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Mathieu De Zutter <mathieu(at)dezutter(dot)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

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Shridhar Daithankar 2003-08-21 14:59:20 Re: Tests
Previous Message Tomka Gergely 2003-08-21 14:51:05 Tests