Re: Which MemoryContext?

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Which MemoryContext?
Дата
Msg-id 20080221040455.GD2510@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: Which MemoryContext?  ("Gevik Babakhani" <pgdev@xs4all.nl>)
Ответы Re: Which MemoryContext?  ("Gevik Babakhani" <pgdev@xs4all.nl>)
Список pgsql-hackers
Gevik Babakhani wrote:
> > On backend exit, everything in TopMemoryContext, like all 
> > other non-shared memory, is automatically released.
> 
> So it is safe to not free the allocated memory in TopMemoryContext and leave
> it to be released on backend exit.

All local memory is safe to handle that way.  The problem only arises
when you have memory to release _earlier_ than that.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support


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

Предыдущее
От: Aidan Van Dyk
Дата:
Сообщение: Re: Permanent settings
Следующее
От: "Joshua D. Drake"
Дата:
Сообщение: Re: Permanent settings