Re: [HACKERS] palloc0

2013-11-30 Thread Michael Paquier
On Sat, Nov 30, 2013 at 11:41 PM, Andrew Dunstan 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, p

Re: [HACKERS] palloc0

2013-11-30 Thread Andrew Dunstan
On 11/30/2013 04:00 AM, mohsen soodkhah mohammadi wrote: if I don't dalloc parameters that allocated with palloc0 then will free the allocated memory at the end of transaction? Please read src/backend/utils/mmgr/README cheers andrew -- Sent via pgsql-hackers mailing list (pgsql-hackers@po

Re: [HACKERS] palloc0

2013-11-30 Thread Atri Sharma
Sent from my iPad > On 30-Nov-2013, at 14:30, mohsen soodkhah mohammadi > wrote: > > if I don't dalloc parameters that allocated with palloc0 then will free the > allocated memory at the end of transaction? Yes, palloc allocates memory in contexts, and the memory allocated in these context

[HACKERS] palloc0

2013-11-30 Thread mohsen soodkhah mohammadi
if I don't dalloc parameters that allocated with palloc0 then will free the allocated memory at the end of transaction?