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

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

From
Tom Lane
Date:
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(-)