on delete cascade slowing down delete

From: Ivan Sergio Borgonovo <mail(at)webthatworks(dot)it>
To: pgsql-general(at)postgresql(dot)org
Subject: on delete cascade slowing down delete
Date: 2008-08-21 17:06:32
Message-ID: 20080821190632.6ef138f2@dawn.webthatworks.it
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I've a large table with a pk and several smaller tables with fk
referencing to it.

deleting from the first table is very slow.

Not all the related fk have indexes but they are VERY small (0 to
100 records) while the main table contain 600-800K records.

the
explain delete p;
doesn't give any clue.

Any hint to track down the problem?

thanks

--
Ivan Sergio Borgonovo
http://www.webthatworks.it

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Mark Roberts 2008-08-21 17:11:20 Re: What's size of your PostgreSQL Database?
Previous Message Robert Gobeille 2008-08-21 16:35:25 Re: plpgsql - sorting result set