From: Tom Lane <tgl@sss.pgh.pa.us>
To: Mathieu De Zutter <mathieu@dezutter.org>
Cc: pgsql-performance@postgresql.org
Subject: Re: Sorting a query on a view ignores an index
Date: Thu, 21 Aug 2003 13:02:08 -0400
Message-ID: <14117.1061485328@sss.pgh.pa.us> (raw)
In-Reply-To: <20030821162448.GC973@pleyel.kotnet.org>
References: <20030821133538.GA973@pleyel.kotnet.org>
<8509.1061477951@sss.pgh.pa.us>
<20030821162448.GC973@pleyel.kotnet.org>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-performance@postgresql.org
Cc: tgl@sss.pgh.pa.us, mathieu@dezutter.org
Subject: Re: Sorting a query on a view ignores an index
In-Reply-To: <14117.1061485328@sss.pgh.pa.us>
References: <20030821133538.GA973@pleyel.kotnet.org> <8509.1061477951@sss.pgh.pa.us> <20030821162448.GC973@pleyel.kotnet.org> <14117.1061485328@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox