From: Tom Lane <tgl@sss.pgh.pa.us>
To: Markus Schaber <schabios@logi-track.com>
Cc: PostgreSQL Performance List <pgsql-performance@postgresql.org>
Subject: Re: Index usage for sorted query
Date: Sat, 20 Nov 2004 11:48:16 -0500
Message-ID: <21432.1100969296@sss.pgh.pa.us> (raw)
In-Reply-To: <20041120151710.695f4de5@kingfisher.intern.logi-track.com>
References: <20041120151710.695f4de5@kingfisher.intern.logi-track.com>
Markus Schaber <schabios@logi-track.com> writes:
> But as it fetches all the rows through the index, why doesn't it
> recognize that, fetching this way, the rows are already sorted by
> l_postcode?
Tell it to "ORDER BY cd, l_postcode".
> Is Postgresql 8 more intelligend in this case?
No.
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 using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: tgl@sss.pgh.pa.us, schabios@logi-track.com
Subject: Re: Index usage for sorted query
In-Reply-To: <21432.1100969296@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