Re: question on scan of clustered index

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pwing(at)student(dot)umass(dot)edu
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: question on scan of clustered index
Date: 2007-07-13 01:46:03
Message-ID: 9202.1184291163@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

pwing(at)student(dot)umass(dot)edu writes:
> I am running three ways: sequential scan, bitmap index scan and index scan.
> The I/O cost for the index scan is 24+ times more than the other two. I do not
> understand why this happens. If I am using a clustered index, it is my
> understanding that there should be no need to retrieve a single page multiple
> times, as tuples are sorted. Am I misunderstanding something?

How long ago did you cluster the table? It sounds like it has degraded
far away from a fully-ordered state.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Stephen Frost 2007-07-13 01:51:06 Re: How to pg_dumpall without root password
Previous Message Tom Lane 2007-07-13 01:43:40 Re: How to pg_dumpall without root password