Re: slow delete...

From: "Charles Duffy" <charles(dot)duffy(at)gmail(dot)com>
To: "Jessica Richard" <rjessil(at)yahoo(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: slow delete...
Date: 2008-07-04 07:17:43
Message-ID: dfdaea8f0807040017g2ecacd48jf209d72b696b074a@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

> by the way, there is a foreign key on another table that references the
> primary key col0 on table test.
>

Try putting an index on the FK column in the other table. Analyse the
table. Test by starting a transaction then
issuing: explain analyze delete from test where cola = 'abc'. Should be faster.

Charles Duffy

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Dev 2008-07-04 07:42:12 Re: Best way to limit database sizes
Previous Message Julius Tuskenis 2008-07-04 06:41:42 Re: changing sequence in serial field