Re: [HACKERS] Thinking about inventing MemoryContextSetParent

2011-09-12 Thread Alvaro Herrera
Excerpts from Tom Lane's message of sáb sep 10 19:03:23 -0300 2011: I'm considering inventing a new mcxt.c primitive, void MemoryContextSetParent(MemoryContext context, MemoryContext new_parent); which would have the effect of delinking context from its current parent context and

Re: [HACKERS] Thinking about inventing MemoryContextSetParent

2011-09-12 Thread Tom Lane
Alvaro Herrera alvhe...@commandprompt.com writes: Excerpts from Tom Lane's message of sáb sep 10 19:03:23 -0300 2011: I'm considering inventing a new mcxt.c primitive, void MemoryContextSetParent(MemoryContext context, MemoryContext new_parent); which would have the effect of delinking

Re: [HACKERS] Thinking about inventing MemoryContextSetParent

2011-09-11 Thread Martijn van Oosterhout
On Sat, Sep 10, 2011 at 06:03:23PM -0400, Tom Lane wrote: I'm considering inventing a new mcxt.c primitive, void MemoryContextSetParent(MemoryContext context, MemoryContext new_parent); which would have the effect of delinking context from its current parent context and attaching it as a

[HACKERS] Thinking about inventing MemoryContextSetParent

2011-09-10 Thread Tom Lane
I'm considering inventing a new mcxt.c primitive, void MemoryContextSetParent(MemoryContext context, MemoryContext new_parent); which would have the effect of delinking context from its current parent context and attaching it as a child of the new specified parent. (Any child contexts that it