Memory leak in deferrable index constraints

Поиск
Список
Период
Сортировка
От Dean Rasheed
Тема Memory leak in deferrable index constraints
Дата
Msg-id 8e2dbb701001310645k28ae8fa3rbc130a83184a5e10@mail.gmail.com
обсуждение исходный текст
Ответы Re: Memory leak in deferrable index constraints  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Oops, my fault. The list returned by ExecInsertIndexTuples() needs to be
freed otherwise lots of lists (one per row) will build up and not be freed
until the end of the query. This actually accounts for even more memory
than the after-trigger event queue. Patch attached.

Of course the after-trigger queue still uses a lot of memory for large
updates (I was working on a patch for that but ran out of time before
this commitfest started). This fix at least brings deferred index
constraints into line with FK constraints, in terms of memory usage.

Regards,
Dean

Вложения

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

Предыдущее
От: Matteo Beccati
Дата:
Сообщение: Re: mailing list archiver chewing patches
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Memory leak in deferrable index constraints