Re: Speeding up 'bulk' delete (and/or seeing what is going on while the delete is being processed)

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Alan Hodgson <ahodgson(at)simkin(dot)ca>
Cc: PostGreSQL <pgsql-novice(at)postgresql(dot)org>
Subject: Re: Speeding up 'bulk' delete (and/or seeing what is going on while the delete is being processed)
Date: 2009-08-27 17:17:56
Message-ID: 6194.1251393476@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Alan Hodgson <ahodgson(at)simkin(dot)ca> writes:
> Do you have other foreign keys into supplierProduct on other tables where
> the relevant columns aren't indexed? Slow deletes are usually caused by
> that.

Yeah. The query plan itself looks perfectly reasonable, so I'm
suspecting the problem is something happening subsequent to the row
deletions --- like foreign key constraint checking.

regards, tom lane

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Jignesh Shah 2009-08-27 17:37:45 Re: Trigger for Truncate event
Previous Message Alan Hodgson 2009-08-27 16:34:33 Re: Speeding up 'bulk' delete (and/or seeing what is going on while the delete is being processed)