| From: | Atri Sharma <atri(dot)jiit(at)gmail(dot)com> |
|---|---|
| To: | mohsen soodkhah mohammadi <mohsensoodkhah(at)gmail(dot)com> |
| Cc: | "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Re: palloc0 |
| Date: | 2013-11-30 09:40:07 |
| Message-ID: | B63B2B31-38CC-4DC3-90E3-2689BA360A16@gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Sent from my iPad
> On 30-Nov-2013, at 14:30, mohsen soodkhah mohammadi <mohsensoodkhah(at)gmail(dot)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 deletion of the context.
Regards,
Atri
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Haribabu kommi | 2013-11-30 11:59:37 | Re: New option for pg_basebackup, to specify a different directory for pg_xlog |
| Previous Message | Jeff Davis | 2013-11-30 09:32:04 | Re: Extension Templates S03E11 |