Re: Simple DELETE on modest-size table runs 100% CPU forever

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Simple DELETE on modest-size table runs 100% CPU forever
Дата
Msg-id 20191114222258.GA23194@alvherre.pgsql
обсуждение исходный текст
Ответ на Simple DELETE on modest-size table runs 100% CPU forever  (Craig James <cjames@emolecules.com>)
Список pgsql-performance
On 2019-Nov-14, Craig James wrote:

> I'm completely baffled by this problem: I'm doing a delete that joins three
> modest-sized tables, and it gets completely stuck: 100% CPU use forever.

Do you have any FKs there?  If any delete is cascading, and you don't
have an index on the other side, it'd do tons of seqscans.

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



В списке pgsql-performance по дате отправления:

Предыдущее
От: Craig James
Дата:
Сообщение: Simple DELETE on modest-size table runs 100% CPU forever
Следующее
От: Michael Lewis
Дата:
Сообщение: Re: Simple DELETE on modest-size table runs 100% CPU forever