Jean-Max Reymond <jmreymond(at)gmail(dot)com> writes:
> I have a stored procedure written in perl and I doubt that perl's
> garbage collector is working :-(
> after a lot of work, postmaster has a size of 1100 Mb and I think
> that the keyword "undef" has no effects.
Check the PG list archives --- there's been previous discussion of
similar issues. I think we concluded that when Perl is built to use
its own private memory allocator, the results of that competing with
malloc are not very pretty :-(. You end up with a fragmented memory
map and no chance to give anything back to the OS.
regards, tom lane