Re: Seq Scans when index expected to be used - Mailing list pgsql-sql

From Joe Conway
Subject Re: Seq Scans when index expected to be used
Date
Msg-id 3FC8D6D3.2030504@joeconway.com
Whole thread Raw
In response to Re: Seq Scans when index expected to be used  ("jasiek" <jasiek@klaster.net>)
Responses Re: Seq Scans when index expected to be used  (ow <oneway_111@yahoo.com>)
List pgsql-sql
jasiek wrote:
> On Sat, 29 Nov 2003 08:49:24 -0800 (PST), ow wrote
> 
>>explain select b, c, a
>>from test
>>group by b, c, a
>>having count(*) > 1

Why would you expect this to use an index scan when it needs to read the 
entire table? If you read the whole table (or even a significant 
fraction of it), a seq scan is faster.

Joe





pgsql-sql by date:

Previous
From: Tom Lane
Date:
Subject: Re: Seq Scans when index expected to be used
Next
From: Stephan Szabo
Date:
Subject: Re: Seq Scans when index expected to be used