pgsql: Move memory context callback declarations into palloc.h.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Move memory context callback declarations into palloc.h.
Date: 2015-03-01 17:31:39
Message-ID: E1YS7iN-0004Lm-3K@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Move memory context callback declarations into palloc.h.

Initial experience with this feature suggests that instances of
MemoryContextCallback are likely to propagate into some widely-used headers
over time. As things stood, that would result in pulling memutils.h or
at least memnodes.h into common headers, which does not seem desirable.
Instead, let's decide that this feature is part of the "ordinary palloc
user" API rather than the "specialized context management" API, and as
such should be declared in palloc.h not memutils.h.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/097fe194aa7c590b4fa43d5e40c083940859c286

Modified Files
--------------
src/include/nodes/memnodes.h | 16 ----------------
src/include/utils/memutils.h | 2 --
src/include/utils/palloc.h | 20 ++++++++++++++++++++
3 files changed, 20 insertions(+), 18 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Noah Misch 2015-03-01 18:21:12 pgsql: Unlink static libraries before rebuilding them.
Previous Message Simon Riggs 2015-03-01 16:27:33 Re: pgsql: Invent a memory context reset/delete callback mechanism.