Re: DELETE running at snail-speed

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: gerhard <g(dot)hintermayer(at)inode(dot)at>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: DELETE running at snail-speed
Date: 2008-12-18 14:21:28
Message-ID: 25367.1229610088@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

gerhard <g(dot)hintermayer(at)inode(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Csaba Nagy 2008-12-18 14:26:42 Re: DELETE running at snail-speed
Previous Message gerhard 2008-12-18 14:19:39 Re: DELETE running at snail-speed