Re: pointer scope and memory contexts

Поиск
Список
Период
Сортировка
От Pavan Deolasee
Тема Re: pointer scope and memory contexts
Дата
Msg-id 2e78013d0811060453l49dbc87oc9c60549e5963de2@mail.gmail.com
обсуждение исходный текст
Ответ на pointer scope and memory contexts  ("Tim Keitt" <tkeitt@keittlab.org>)
Список pgsql-hackers
On Thu, Nov 6, 2008 at 7:01 AM, Tim Keitt <tkeitt@keittlab.org> wrote:
> I am working on a set returning function and have a question about
> switching memory contexts. Basically, what I want to know is whether
> memory allocated in one context can be referenced when a different
> context is current.

You can safely refer the memory allocated in a different context as
long as the other memory context is still alive.


Thanks,
Pavan

-- 
Pavan Deolasee
EnterpriseDB     http://www.enterprisedb.com


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

Предыдущее
От: Volkan YAZICI
Дата:
Сообщение: Re: question about large object
Следующее
От: "Jaime Casanova"
Дата:
Сообщение: Re: regression in analyze