pgsql: Move memory context callback declarations into palloc.h. - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Move memory context callback declarations into palloc.h.
Date
Msg-id E1YS7iN-0004Lm-3K@gemulon.postgresql.org
Whole thread Raw
List 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(-)


pgsql-committers by date:

Previous
From: Simon Riggs
Date:
Subject: Re: pgsql: Invent a memory context reset/delete callback mechanism.
Next
From: Noah Misch
Date:
Subject: pgsql: Unlink static libraries before rebuilding them.