Re: DELETE running at snail-speed

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: DELETE running at snail-speed
Дата
Msg-id 25367.1229610088@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: DELETE running at snail-speed  (gerhard <g.hintermayer@inode.at>)
Список 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 по дате отправления:

Предыдущее
От: gerhard
Дата:
Сообщение: Re: DELETE running at snail-speed
Следующее
От: Csaba Nagy
Дата:
Сообщение: Re: DELETE running at snail-speed