Re: palloc0 - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: palloc0
Date
Msg-id CAB7nPqSex6dNsM04DLUxjOvMW9tRNfmbarJ01VEP8it_BGRcCQ@mail.gmail.com
Whole thread Raw
In response to Re: palloc0  (Andrew Dunstan <andrew@dunslane.net>)
List pgsql-hackers
On Sat, Nov 30, 2013 at 11:41 PM, Andrew Dunstan <andrew@dunslane.net> wrote:
> Please read src/backend/utils/mmgr/README
And that as well directly in the docs:
http://www.postgresql.org/docs/devel/static/xfunc-c.html#AEN53984
"The memory allocated by palloc will be freed automatically at the end
of each transaction, preventing memory leaks."
Regards,
-- 
Michael



pgsql-hackers by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: lock on object is already held
Next
From: Jeff Davis
Date:
Subject: Re: Extension Templates S03E11