Re: delete performance is extremely slow

From: Alan Hodgson <ahodgson(at)simkin(dot)ca>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: delete performance is extremely slow
Date: 2006-11-08 07:08:55
Message-ID: 200611072308.55150@hal.medialogik.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tuesday 07 November 2006 22:59, "surabhi.ahuja"
<surabhi(dot)ahuja(at)iiitb(dot)ac(dot)in> wrote:
> I am using postgresql 8.0.0
>
> i have 4 tables a, b, c, d.
> with foreign key constraints.
> between table b and a
> between c and b
> and between d and c
>
> I am doing delete from a
>
> delete from a is taking so long . So i just stopped it.
> what is going wrong

You're most likely missing an index on one of the foreign key fields in one
of the tables that the delete is cascading to.

--
"A democracy is a sheep and two wolves deciding on what to have for
lunch. Freedom is a well armed sheep contesting the results of the
decision." -- Benjamin Franklin

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Joe Conway 2006-11-08 07:34:14 Re: R and postgres
Previous Message surabhi.ahuja 2006-11-08 06:59:11 delete performance is extremely slow