Re: Sorting a query on a view ignores an index - Mailing list pgsql-performance

From Tom Lane
Subject Re: Sorting a query on a view ignores an index
Date
Msg-id 14117.1061485328@sss.pgh.pa.us
Whole thread Raw
In response to Re: Sorting a query on a view ignores an index  (Mathieu De Zutter <mathieu@dezutter.org>)
Responses Re: Sorting a query on a view ignores an index
List pgsql-performance
Mathieu De Zutter <mathieu@dezutter.org> writes:
> Apart from avoiding views or subselects when sorting afterwards and
> putting the whole bunch in a huge SQL statement (which i'll have to
> produce on-the-fly), do you have an other alternative?

See if you can avoid the subselects in the view's SELECT list.  That's
what's preventing 7.3 from doing a good job.

            regards, tom lane

pgsql-performance by date:

Previous
From: Bill Moran
Date:
Subject: Re: Tests
Next
From: Tomka Gergely
Date:
Subject: Re: Tests