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

From Tom Lane
Subject Re: Speeding up 'bulk' delete (and/or seeing what is going on while the delete is being processed)
Date
Msg-id 6194.1251393476@sss.pgh.pa.us
Whole thread Raw
In response to Re: Speeding up 'bulk' delete (and/or seeing what is going on while the delete is being processed)  (Alan Hodgson <ahodgson@simkin.ca>)
Responses Re: Speeding up 'bulk' delete (and/or seeing what is going on while the delete is being processed)  (Steve T <steve@retsol.co.uk>)
List pgsql-novice
Alan Hodgson <ahodgson@simkin.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

pgsql-novice by date:

Previous
From: Alan Hodgson
Date:
Subject: Re: Speeding up 'bulk' delete (and/or seeing what is going on while the delete is being processed)
Next
From: Jignesh Shah
Date:
Subject: Re: Trigger for Truncate event