pgsql: Invent a new memory context primitive, MemoryContextSetParent. - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Invent a new memory context primitive, MemoryContextSetParent.
Date
Msg-id E1R2qf3-0001Gs-W5@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/b0025bd95703aaedc4ff23ddcfbde9597fa0919d

Modified Files
--------------
src/backend/utils/mmgr/mcxt.c |   82 +++++++++++++++++++++++++++++++---------
src/include/utils/memutils.h  |    2 +
2 files changed, 65 insertions(+), 19 deletions(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Remove no-longer-used variable.
Next
From: Heikki Linnakangas
Date:
Subject: pgsql: In the final emptying phase of the new GiST buffering build, set