Re: Can this be indexed? - Mailing list pgsql-general

From Bruno Wolff III
Subject Re: Can this be indexed?
Date
Msg-id 20041109021815.GB14080@wolff.to
Whole thread Raw
In response to Re: Can this be indexed?  ("Jerry III" <jerryiii@hotmail.com>)
List pgsql-general
On Sun, Nov 07, 2004 at 09:29:30 +0000,
  Jerry III <jerryiii@hotmail.com> wrote:
> But if you do build an index over "id" then pgsql would only have to do a
> sequential scan on that index, which might be a lot faster if your table
> contains a lot of other data, won't it?

A full table index scan will be slower than a sequential scan; typically by
a lot. In the old days a sort step would have been needed and that would have
slowed things down. Now a method using hashing is available that will
work unless there is an extremely large number of unique values for "id".

pgsql-general by date:

Previous
From: Joel
Date:
Subject: Re: Postresql RFD version 2.0 Help Wanted.
Next
From: "Ed L."
Date:
Subject: Re: server auto-restarts and ipcs