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

From Stephan Szabo
Subject Re: Seq Scans when index expected to be used
Date
Msg-id 20031129093428.R75231@megazone.bigpanda.com
Whole thread Raw
In response to Seq Scans when index expected to be used  (ow <oneway_111@yahoo.com>)
List pgsql-sql
On Sat, 29 Nov 2003, ow wrote:

> Am trying to find duplicate values in a large table (about 80M records).
> Somehow, none of the two (2) queries (see below) is using the index "I_bca"
> that, I believe, should've been used.

As a side note, to help determine if it should be used, you probably want
explain analyze not just explain. In general the index is only going to
help you if the sort is very expensive, not for the initial scan (where
the seq scan is generally faster).


pgsql-sql by date:

Previous
From: Joe Conway
Date:
Subject: Re: Seq Scans when index expected to be used
Next
From: greg@turnstep.com
Date:
Subject: Re: Equivalent of Reverse() functions