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

From Michael Paquier
Subject Replace use malloc() & friend by memory contexts for plperl and pltcl
Date
Msg-id CAB7nPqSOyAsHC6jL24J1B+oK3p=yyNoFU0Vs_B6fd2kdd5g5WQ@mail.gmail.com
Whole thread Raw
Responses Re: Replace use malloc() & friend by memory contexts for plperl and pltcl  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Replace use malloc() & friend by memory contexts for plperl and pltcl  (Jim Nasby <Jim.Nasby@BlueTreble.com>)
List pgsql-hackers
Hi all,

Cleanup $subject has been raised a couple of times, like one year ago here:
https://www.postgresql.org/message-id/CAB7nPqRxvq+Q66UFzD9wa5UAftYN4WAUADbjXKFrync96kf-VQ@mail.gmail.com
And more recently here while working on the NULL checks for malloc():
https://www.postgresql.org/message-id/CAB7nPqR7ozfCqc6C=2+ctCcnuehTZ-vTDQ8MMhY=BQyET0Honw@mail.gmail.com

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

Thoughts?
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: Aggregate Push Down - Performing aggregation on foreign server
Next
From: Amit Langote
Date:
Subject: Re: Aggregate Push Down - Performing aggregation on foreign server