Move memory context callback declarations into palloc.h.
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 1 Mar 2015 17:31:32 +0000 (12:31 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 1 Mar 2015 17:31:32 +0000 (12:31 -0500)
commit097fe194aa7c590b4fa43d5e40c083940859c286
treed3ba8b6c0fc633346d927b390f413df9021368a6
parente059e02e43cd825616192d010e9e638a96ad4717
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.
src/include/nodes/memnodes.h
src/include/utils/memutils.h
src/include/utils/palloc.h