Re: slow delete... - Mailing list pgsql-admin

From Charles Duffy
Subject Re: slow delete...
Date
Msg-id dfdaea8f0807040017g2ecacd48jf209d72b696b074a@mail.gmail.com
Whole thread Raw
In response to slow delete...  (Jessica Richard <rjessil@yahoo.com>)
List 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

pgsql-admin by date:

Previous
From: Julius Tuskenis
Date:
Subject: Re: changing sequence in serial field
Next
From: Dev
Date:
Subject: Re: Best way to limit database sizes