Re: Replace use malloc() & friend by memory contexts for plperl and pltcl - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Replace use malloc() & friend by memory contexts for plperl and pltcl
Date
Msg-id 23402.1472687834@sss.pgh.pa.us
Whole thread Raw
In response to Re: Replace use malloc() & friend by memory contexts for plperl and pltcl  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Replace use malloc() & friend by memory contexts for plperl and pltcl  (Michael Paquier <michael.paquier@gmail.com>)
List pgsql-hackers
I wrote:
> Michael Paquier <michael.paquier@gmail.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



pgsql-hackers by date:

Previous
From: Erik Rijkers
Date:
Subject: Re: Logical Replication WIP
Next
From: "Joshua D. Drake"
Date:
Subject: restoration after crash slowness, any way to improve?