Re: [HACKERS] Storing MemoryContext Pointers

2006-10-06 Thread Volkan YAZICI
On Oct 05 03:34, Tom Lane wrote: Volkan YAZICI [EMAIL PROTECTED] writes: When I allocate a new memory context via oldmcxt = AllocSetContextCreate(TopMemoryContext, ...) persistent_mcxt = CurrentMemoryContext; ITYM persistent_mcxt = AllocSetContextCreate(TopMemoryContext,

Re: [HACKERS] Storing MemoryContext Pointers

2006-10-06 Thread Tom Lane
Volkan YAZICI [EMAIL PROTECTED] writes: On Oct 05 03:34, Tom Lane wrote: Volkan YAZICI [EMAIL PROTECTED] writes: How can I store the persistent_mcxt in a persistent place that I'll be able to reach it in my next getting invoked? Make it a static variable. I had thought some kind of

[HACKERS] Storing MemoryContext Pointers

2006-10-05 Thread Volkan YAZICI
Hi, When I allocate a new memory context via oldmcxt = AllocSetContextCreate(TopMemoryContext, ...) persistent_mcxt = CurrentMemoryContext; How can I store the persistent_mcxt in a persistent place that I'll be able to reach it in my next getting invoked? Is that possible? If not, how can I

Re: [HACKERS] Storing MemoryContext Pointers

2006-10-05 Thread Tom Lane
Volkan YAZICI [EMAIL PROTECTED] writes: When I allocate a new memory context via oldmcxt = AllocSetContextCreate(TopMemoryContext, ...) persistent_mcxt = CurrentMemoryContext; ITYM persistent_mcxt = AllocSetContextCreate(TopMemoryContext, ...) because the other doesn't do what you