I wrote:
> Michael Paquier <michael(dot)paquier(at)gmail(dot)com> writes:
>> Attached are a set of patches to replace those memory system calls by
>> proper memory contexts:
>> - 0001 does the cleanup work for pltcl
>> - 0002 does this cleanup for plperl
> Off to look at 0002 next.
Pushed 0002 as well. The main thing missing there was to use a PG_TRY
block to replace the bulky-and-yet-incomplete assorted invocations of
free_plperl_function.
regards, tom lane