Re: LONG delete with LOTS of FK's

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: LONG delete with LOTS of FK's
Дата
Msg-id 7092.1368135649@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: LONG delete with LOTS of FK's  (Larry Rosenman <ler@lerctr.org>)
Ответы Re: LONG delete with LOTS of FK's  (Larry Rosenman <ler@lerctr.org>)
Список 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 по дате отправления:

Предыдущее
От: Shaun Thomas
Дата:
Сообщение: Re: LONG delete with LOTS of FK's
Следующее
От: Larry Rosenman
Дата:
Сообщение: Re: LONG delete with LOTS of FK's