Re: [GENERAL] DELETE taking too much memory

Поиск
Список
Период
Сортировка
От Claudio Freire
Тема Re: [GENERAL] DELETE taking too much memory
Дата
Msg-id CAGTBQpb+2Uv9sZxYBKna6uX1SDsxj9E9CJWjP+_JfeK3s5rLCg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [GENERAL] DELETE taking too much memory  (Dean Rasheed <dean.a.rasheed@gmail.com>)
Список pgsql-performance
On Fri, Jul 8, 2011 at 12:48 PM, Dean Rasheed <dean.a.rasheed@gmail.com> wrote:
> Yes, it's the same issue that affects deferrable PK and FK
> constraints, but even non-deferrable FKs use AFTER ROW triggers that
> suffer from this problem. These triggers don't show up in a "\d" from
> psql, but they are there (try select * from pg_trigger where
> tgconstrrelid = 't1'::regclass) and because they fire AFTER rather
> than BEFORE, queuing up large numbers of them is a problem.

I would imagine an "easy" solution would be to "compress" the queue by
inserting a single element representing all rows of row version id X.

Ie: a delete or update will need to check all the row versions it
creates with its txid, this txid could be used to represent the rows
that need checking afterwards right?

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

Предыдущее
От: Dean Rasheed
Дата:
Сообщение: Re: [GENERAL] DELETE taking too much memory
Следующее
От: Sergio Mayoral
Дата:
Сообщение: execution time for first INSERT