Re: LONG delete with LOTS of FK's - Mailing list pgsql-general

From Tom Lane
Subject Re: LONG delete with LOTS of FK's
Date
Msg-id 7092.1368135649@sss.pgh.pa.us
Whole thread Raw
In response to Re: LONG delete with LOTS of FK's  (Larry Rosenman <ler@lerctr.org>)
Responses Re: LONG delete with LOTS of FK's
List pgsql-general
Larry Rosenman <ler@lerctr.org> writes:
> On 2013-05-09 16:22, Tom Lane wrote:
>> Perhaps it's blocked on a lock?  Did you look into pg_locks?
>> Did you note whether the process was consuming CPU time and/or doing
>> IO?

> all the locks were clear, and it was consuming CPU and doing I/O
> (D->S->D state), etc.

Hm.  I'm suspicious that you still ended up with a seqscan checking
plan.  Was this session started after you added all the missing indexes?
If not, it seems possible that it was using a bad pre-cached plan.

            regards, tom lane


pgsql-general by date:

Previous
From: Shaun Thomas
Date:
Subject: Re: LONG delete with LOTS of FK's
Next
From: Larry Rosenman
Date:
Subject: Re: LONG delete with LOTS of FK's