Received: from acc.nensi.net (acc.nensi.net [195.64.231.21]) by hub.org (8.9.3/8.9.3) with ESMTP id GAA93249 for ; Tue, 29 Feb 2000 06:00:58 -0500 (EST) (envelope-from andrei@mart.cherkassy.ua) Received: from mart (mart.user.nensi.net [195.64.231.252]) by acc.nensi.net (8.9.3-MVC/8.9.3) with ESMTP id NAA53977 for ; Tue, 29 Feb 2000 13:00:39 +0200 (EET) Received: (qmail 2609 invoked from network); 29 Feb 2000 10:15:52 -0000 Received: from andrei.mart.cherkassy.ua (HELO andrei) (192.168.1.67) by server1.mart.cherkassy.ua with SMTP; 29 Feb 2000 10:15:52 -0000 Message-ID: <000701bf829e$e4447ac0$4301a8c0@mart.cherkassy.ua> From: "Andrei N.Sobchuck" To: References: <200002290401.XAA04949@hub.org> Subject: Why idex scan not used? Date: Tue, 29 Feb 2000 12:22:33 +0200 Organization: Birga Neruhomosti, Co MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 => 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).