Invent a new memory context primitive, MemoryContextSetParent.
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 11 Sep 2011 20:29:42 +0000 (16:29 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 11 Sep 2011 20:29:42 +0000 (16:29 -0400)
commitb0025bd95703aaedc4ff23ddcfbde9597fa0919d
tree23e4a900474f51b2c7932fffcf276e8141e0c389
parent5f42e5945b3dd96c228531c0730f418846ced04e
Invent a new memory context primitive, MemoryContextSetParent.

This function will be useful for altering the lifespan of a context after
creation (for example, by creating it under a transient context and later
reparenting it to belong to a long-lived context).  It costs almost no new
code, since we can refactor what was there.  Per my proposal of yesterday.
src/backend/utils/mmgr/mcxt.c
src/include/utils/memutils.h