Memory leak in Pl/Python

Поиск
Список
Период
Сортировка
От Andrey Zhidenkov
Тема Memory leak in Pl/Python
Дата
Msg-id CAJw4d1Xj7HqqWwpsPsPbuVEhjQo49vfW7j3BVaA=GyvWjdW+Hw@mail.gmail.com
обсуждение исходный текст
Ответы Re: Memory leak in Pl/Python  ("David G. Johnston" <david.g.johnston@gmail.com>)
Список pgsql-hackers
I have postgresql 9.4.8 on my server and I've noticed always growing
memory when I use plpython. I've made some tests and find a few
situations, when memory leaks. For example, when I call this procedure
many times, I can see an always growing memory:

create or replace
function test() returns bigint as $$

plpy.execute("insert into test(test) values ('test')")

return 1

$$ language plpythonu;

Interestingly, when I use not-modifying data query ('select 1') as
argument of execute(), a leak stops.

How can I fix/avoid this?



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

Предыдущее
От: Gavin Flower
Дата:
Сообщение: Re: Bug in to_timestamp().
Следующее
От: "Joshua D. Drake"
Дата:
Сообщение: Re: Bug in to_timestamp().