DELETE takes too much memory

Поиск
Список
Период
Сортировка
От Kouber Saparev
Тема DELETE takes too much memory
Дата
Msg-id CAN4RuQtCYxQg0u_NUncLAyLE-Yd9Yv1Ont5R2skJ53Xygvc4Xg@mail.gmail.com
обсуждение исходный текст
Ответы Re: DELETE takes too much memory  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Re: DELETE takes too much memory  (Merlin Moncure <mmoncure@gmail.com>)
Список pgsql-performance
I tried to DELETE about 7 million rows at once, and the query went up to 15% of the RAM (120 GB in total), which pushed some indexes out and the server load went up to 250, so I had to kill the query.

The involved table does not have neither foreign keys referring to other tables, nor other tables refer to it. The size of the table itself is 19 GB (15% of 120 GB). So why the DELETE tried to put the entire table in memory, or what did it do to take so much memory?

I am using 9.4.5.

Regards,
--
Kouber Saparev

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

Предыдущее
От: Vladimir Borodin
Дата:
Сообщение: Re: [HACKERS] 9.4 -> 9.5 regression with queries through pgbouncer on RHEL 6
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: DELETE takes too much memory