pgsql: Invent a new memory context primitive, MemoryContextSetParent.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Invent a new memory context primitive, MemoryContextSetParent.
Date: 2011-09-11 20:29:53
Message-ID: E1R2qf3-0001Gs-W5@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Heikki Linnakangas 2011-09-12 12:11:47 pgsql: In the final emptying phase of the new GiST buffering build, set
Previous Message Tom Lane 2011-09-11 20:18:24 pgsql: Remove no-longer-used variable.