pl/perl object destruction (or lack thereof) at session end
В списке pgsql-general по дате отправления:
| От | Toby Corkindale |
|---|---|
| Тема | pl/perl object destruction (or lack thereof) at session end |
| Дата | |
| Msg-id | 4D003857.4010203@strategicdata.com.au обсуждение исходный текст |
| Ответы |
Re: pl/perl object destruction (or lack thereof) at session
end
|
| Список | pgsql-general |
Hi, Looking at this: http://www.postgresql.org/docs/9.0/interactive/plperl-under-the-hood.html Specifically, the "known limitations" part, I see it says: When a session ends normally, not due to a fatal error, any END blocks that have been defined are executed. Currently no other actions are performed. Specifically, file handles are not automatically flushed and objects are not automatically destroyed." So I wondered what implications that has for stored procedures that create objects? Will the following code cause a memory leak if called many times, due to the $big object never being destroyed? CREATE FUNCTION foobar() RETURNS trigger AS $$ use Big::Module; my $big = Big::Module->new; $$ LANGUAGE plperlu Thanks, Toby
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера