Re: DELETE takes too much memory

Josh Berkus <josh@agliodbs.com>

From: Josh Berkus <josh@agliodbs.com>
To: Kouber Saparev <kouber@gmail.com>, Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: pgsql-performance@postgresql.org
Date: 2016-07-05T18:51:54Z
Lists: pgsql-performance
On 07/04/2016 10:10 AM, Kouber Saparev wrote:
> No. There are AFTER triggers on other tables that write to this one
> though. It is an audits table, so I omitted all the foreign keys on purpose.

Is it possible that the DELETE blocked many of those triggers due to
locking the same rows?

Incidentally, any time I get into deleting large numbers of rows, I
generally find it faster to rebuild the table instead ...

-- 
--
Josh Berkus
Red Hat OSAS
(any opinions are my own)