Re: [HACKERS] Thinking about inventing MemoryContextSetParent

2011-09-12 Thread Tom Lane
Alvaro Herrera 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 "context" from its

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 a

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