Re: Query does not use index

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Martin Hampl <Martin(dot)Hampl(at)gmx(dot)de>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Query does not use index
Date: 2004-05-01 15:48:57
Message-ID: 14409.1083426537@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Martin Hampl <Martin(dot)Hampl(at)gmx(dot)de> writes:
> Am 30.04.2004 um 17:52 schrieb Tom Lane:
>> It could be that this table has a lot of empty pages near the front,

> I never deleted anything from this database, but it might be that I
> dropped some of the tables a couple of times when populating the
> database. Also 'copy from' failed a couple of times. Can that have the
> same effect?

A failed copy-in would leave a dead row for each input line that it was
able to process before hitting the error. So potentially that could
account for a lot of dead rows. I think there is a hint on the COPY
reference page suggesting that you VACUUM in such a situation ...

regards, tom lane

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Martin Hampl 2004-05-01 15:58:29 Re: Query does not use index
Previous Message Jeff Eckermann 2004-05-01 14:49:03 Re: Setting up pgsql for ODBC