Re: Slow update - index problem?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Christopher Murtagh <christopher(dot)murtagh(at)mcgill(dot)ca>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Slow update - index problem?
Date: 2003-02-21 16:17:11
Message-ID: 15248.1045844231@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Christopher Murtagh <christopher(dot)murtagh(at)mcgill(dot)ca> writes:
> The table has 19867 records, and this query takes over 20 minutes. When I
> export the data to a new DB, with the same table (no indexes) it takes
> about 3 seconds.

It kinda sounds like you've done a whole lot of updating and never
vacuumed this table. What does 'VACUUM FULL VERBOSE ind' tell you?

> Any ideas? Would *removing* indexes make it faster?

Yes, but I doubt that it's the indexes that are the bulk of the problem.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Christopher Murtagh 2003-02-21 16:27:41 Re: Slow update - index problem?
Previous Message Eric B.Ridge 2003-02-21 16:11:48 Re: Fwd: REWRITE_INVOKE_MAX and "query may contain cycles"