From: Andrei Gaspar <andi@softnrg.dnttm.ro>
To: pgsql-performance@postgresql.org
Subject: Sort and index
Date: Mon, 18 Apr 2005 18:36:14 +0300
Message-ID: <4263D3EE.5010409@softnrg.dnttm.ro> (raw)
Hi,
I thought that an index can be used for sorting.
I'm a little confused about the following result:
create index OperationsName on Operations(cOperationName);
explain SELECT * FROM Operations ORDER BY cOperationName;
QUERY PLAN
-----------------------------------------------------------------------
Sort (cost=185.37..189.20 rows=1532 width=498)
Sort Key: coperationname
-> Seq Scan on operations (cost=0.00..104.32 rows=1532 width=498)
(3 rows)
Is this supposed to be so?
Andrei
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.9.15 - Release Date: 4/16/2005
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: andi@softnrg.dnttm.ro
Subject: Re: Sort and index
In-Reply-To: <4263D3EE.5010409@softnrg.dnttm.ro>
* 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