Fix memleaks and error handling in jsonb_plpython

Поиск
Список
Период
Сортировка
От Nikita Glukhov
Тема Fix memleaks and error handling in jsonb_plpython
Дата
Msg-id 28053a7d-10d8-fc23-b05c-b4749c873f63@postgrespro.ru
обсуждение исходный текст
Ответы Re: Fix memleaks and error handling in jsonb_plpython
Список pgsql-hackers
Unfortunately, contrib/jsonb_plpython still contain a lot of problems in error 
handling that can lead to memory leaks:- not all Python function calls are checked for the success- not in all places PG exceptions are caught to release Python references
But it seems that this errors can happen only in OOM case.

Attached patch with the fix. Back-patch for PG11 is needed.

-- 
Nikita Glukhov
Postgres Professional: http://www.postgrespro.com
The Russian Postgres Company
Вложения

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

Предыдущее
От: Amit Kapila
Дата:
Сообщение: Re: pgsql: Avoid creation of the free space map for small heaprelations, t
Следующее
От: Richard Guo
Дата:
Сообщение: Re: NOT IN subquery optimization