Re: Which MemoryContext?

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема Re: Which MemoryContext?
Дата
Msg-id 47BC943E.80906@enterprisedb.com
обсуждение исходный текст
Ответ на Which MemoryContext?  ("Gevik Babakhani" <pgdev@xs4all.nl>)
Ответы Re: Which MemoryContext?  ("Gevik Babakhani" <pgdev@xs4all.nl>)
Список pgsql-hackers
Gevik Babakhani wrote:
> I want to keep an array of localized strings in memory. 
> This array is dynamically allocated and is going to be used between
> transactions (that are not necessarily nested). 
> It must be cleaned/freed when postmaster exists. 
> In which context should this array be initialized? TopMemoryContext perhaps?

TopMemoryContext sounds right. Be careful not to leak there.

--   Heikki Linnakangas  EnterpriseDB   http://www.enterprisedb.com


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Why does pg_ctl.c have its own copy of PM_VERSIONSTR?
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: Why does pg_ctl.c have its own copy of PM_VERSIONSTR?