From: Andrei N.Sobchuck <andrei@mart.cherkassy.ua>
To: pgsql-admin@hub.org
Subject: Why idex scan not used?
Date: Tue, 29 Feb 2000 12:22:33 +0200
Message-ID: <000701bf829e$e4447ac0$4301a8c0@mart.cherkassy.ua> (raw)
References: <200002290401.XAA04949@hub.org>
=> create table t(id int4 primary key);
=> explain select min(id) from t;
NOTICE: QUERY PLAN:
Aggregate (cost=43.00 rows=1000 width=4)
-> Seq Scan on t (cost=43.00 rows=1000 width=4)
EXPLAIN
Is it possible to make postgresql to use index scan when it calculate
MIN(id).
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-admin@postgresql.org
Cc: andrei@mart.cherkassy.ua, pgsql-admin@hub.org
Subject: Re: Why idex scan not used?
In-Reply-To: <000701bf829e$e4447ac0$4301a8c0@mart.cherkassy.ua>
References: <200002290401.XAA04949@hub.org> <000701bf829e$e4447ac0$4301a8c0@mart.cherkassy.ua>
* 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