Re: Very slow DELETE on 4000 rows of 55000 row table

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bryce Nesbitt <bryce1(at)obviously(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Very slow DELETE on 4000 rows of 55000 row table
Date: 2007-04-03 07:04:00
Message-ID: 21308.1175583840@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Bryce Nesbitt <bryce1(at)obviously(dot)com> writes:
> I've got a DELETE FROM that seems to run forever, pegging the CPU at
> 100%. I can't figure out why it's slow. Any clues?

Unindexed foreign key constraints pointing to this table, perhaps?
EXPLAIN ANALYZE would give a great deal more clue than plain EXPLAIN.

regards, tom lane

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Shavonne Marietta Wijesinghe 2007-04-03 07:13:00 Re: Update problem.
Previous Message Bryce Nesbitt 2007-04-03 06:10:41 Very slow DELETE on 4000 rows of 55000 row table