Re: on delete cascade slowing down delete

From: Alan Hodgson <ahodgson(at)simkin(dot)ca>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: on delete cascade slowing down delete
Date: 2008-08-21 17:16:21
Message-ID: 200808211016.21203@hal.medialogik.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thursday 21 August 2008, Ivan Sergio Borgonovo <mail(at)webthatworks(dot)it>
wrote:
> 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?

1) Define slow.

2) Tell us what your disk subsystem consists of.

3) Are there any delete triggers on the tables?

--
Alan

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Joshua Drake 2008-08-21 17:19:44 Re: on delete cascade slowing down delete
Previous Message Mark Roberts 2008-08-21 17:11:20 Re: What's size of your PostgreSQL Database?