Re: palloc0

Поиск
Список
Период
Сортировка
От Atri Sharma
Тема Re: palloc0
Дата
Msg-id B63B2B31-38CC-4DC3-90E3-2689BA360A16@gmail.com
обсуждение исходный текст
Ответ на palloc0  (mohsen soodkhah mohammadi <mohsensoodkhah@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Jeff Davis
Дата:
Сообщение: Re: Extension Templates S03E11
Следующее
От: Haribabu kommi
Дата:
Сообщение: Re: New option for pg_basebackup, to specify a different directory for pg_xlog