Re: Memory leak with PL/Python trigger

Поиск
Список
Период
Сортировка
От Haribabu Kommi
Тема Re: Memory leak with PL/Python trigger
Дата
Msg-id CAJrrPGcBLU88heef0TB_imuj5VBsz5nDSC-QwmO4-TtAx0_TsA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Memory leak with PL/Python trigger  (Haribabu Kommi <kommi.haribabu@gmail.com>)
Ответы Re: Memory leak with PL/Python trigger
Список pgsql-bugs
On Mon, Aug 3, 2015 at 3:12 PM, Haribabu Kommi <kommi.haribabu@gmail.com> wrote:
>
> Here I attached an updated patch by changing the context into
> PLyExecutionContext and CurrrentMemoryContext
> except in PLy_procedure_create function. In PLy_procedure_create
> function the TopMemoryContext only used.
>
> Along with the above changes, I added a  list_free_deep in
> PLy_procedure_delete function to clean the
> proc->trftypes.
>

Here I attached updated patch with a context allocation in
"PLy_procedure_create" function and the same context is reset
in every function call of "PLy_procedure_get" for all PLY types.

I ran all PL/Python tests and it is fine.

Any comments?

Regards,
Hari Babu
Fujitsu Australia

Вложения

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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: BUG #13445: 8.15.1 is missleading regarding array dimensionality
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: PostgreSQL 9.4.4 Solaris 10 i386 download links point to Sparc binaries