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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Move memory context callback declarations into palloc.h.
Дата
Msg-id E1YS7iN-0004Lm-3K@gemulon.postgresql.org
обсуждение исходный текст
Список 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 по дате отправления:

Предыдущее
От: Simon Riggs
Дата:
Сообщение: Re: pgsql: Invent a memory context reset/delete callback mechanism.
Следующее
От: Noah Misch
Дата:
Сообщение: pgsql: Unlink static libraries before rebuilding them.