From: Charles Duffy <charles.duffy@gmail.com>
To: Jessica Richard <rjessil@yahoo.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: slow delete...
Date: Fri, 4 Jul 2008 17:17:43 +1000
Message-ID: <dfdaea8f0807040017g2ecacd48jf209d72b696b074a@mail.gmail.com> (raw)
In-Reply-To: <695185.47881.qm@web56409.mail.re3.yahoo.com>
References: <695185.47881.qm@web56409.mail.re3.yahoo.com>
> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: charles.duffy@gmail.com, rjessil@yahoo.com
Subject: Re: slow delete...
In-Reply-To: <dfdaea8f0807040017g2ecacd48jf209d72b696b074a@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox