Re: palloc0 - Mailing list pgsql-hackers

From Atri Sharma
Subject Re: palloc0
Date
Msg-id B63B2B31-38CC-4DC3-90E3-2689BA360A16@gmail.com
Whole thread Raw
In response to palloc0  (mohsen soodkhah mohammadi <mohsensoodkhah@gmail.com>)
List pgsql-hackers

Sent from my iPad

> On 30-Nov-2013, at 14:30, mohsen soodkhah mohammadi <mohsensoodkhah@gmail.com> 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 contexts by palloc are freed at the
deletionof the context. 

Regards,

Atri


pgsql-hackers by date:

Previous
From: Jeff Davis
Date:
Subject: Re: Extension Templates S03E11
Next
From: Haribabu kommi
Date:
Subject: Re: New option for pg_basebackup, to specify a different directory for pg_xlog