Skip site navigation (1) Skip section navigation (2)

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: (view raw, whole thread or download thread mbox)
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


pgsql-novice by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group