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
Список
Дерево обсуждения
Fix memleaks and error handling in jsonb_plpython Nikita Glukhov <n.gluhov@postgrespro.ru>
Re: Fix memleaks and error handling in jsonb_plpython Michael Paquier <michael@paquier.xyz>
Re: Fix memleaks and error handling in jsonb_plpython Nikita Glukhov <n.gluhov@postgrespro.ru>
Re: Fix memleaks and error handling in jsonb_plpython Michael Paquier <michael@paquier.xyz>
Re: Fix memleaks and error handling in jsonb_plpython Michael Paquier <michael@paquier.xyz>
Re: Fix memleaks and error handling in jsonb_plpython Tom Lane <tgl@sss.pgh.pa.us>
Re: Fix memleaks and error handling in jsonb_plpython Michael Paquier <michael@paquier.xyz>
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
Дата: