Re: DELETE running at snail-speed - Mailing list pgsql-general

From Tom Lane
Subject Re: DELETE running at snail-speed
Date
Msg-id 25367.1229610088@sss.pgh.pa.us
Whole thread Raw
In response to Re: DELETE running at snail-speed  (gerhard <g.hintermayer@inode.at>)
List pgsql-general
gerhard <g.hintermayer@inode.at> writes:
> oops, should have thought about setting the foreign key constraint
> deferrable, maybe showing this in table definition (\d) would be a
> good idea.

Don't think that'll make any difference.  What *should* help is having
an index on downtime_detail.downtimeid.  As-is it's got to seqscan
downtime_detail to look for rows to be cascade-deleted.

            regards, tom lane

pgsql-general by date:

Previous
From: gerhard
Date:
Subject: Re: DELETE running at snail-speed
Next
From: Csaba Nagy
Date:
Subject: Re: DELETE running at snail-speed