Re: pointer scope and memory contexts - Mailing list pgsql-hackers

From Pavan Deolasee
Subject Re: pointer scope and memory contexts
Date
Msg-id 2e78013d0811060453l49dbc87oc9c60549e5963de2@mail.gmail.com
Whole thread Raw
In response to pointer scope and memory contexts  ("Tim Keitt" <tkeitt@keittlab.org>)
List 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 by date:

Previous
From: Volkan YAZICI
Date:
Subject: Re: question about large object
Next
From: "Jaime Casanova"
Date:
Subject: Re: regression in analyze