diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2015-03-01 12:31:32 -0500 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2015-03-01 12:31:32 -0500 |
| commit | 097fe194aa7c590b4fa43d5e40c083940859c286 (patch) | |
| tree | d3ba8b6c0fc633346d927b390f413df9021368a6 /src/include/nodes | |
| parent | e059e02e43cd825616192d010e9e638a96ad4717 (diff) | |
| download | postgresql-097fe194aa7c590b4fa43d5e40c083940859c286.tar.gz | |
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.
Diffstat (limited to 'src/include/nodes')
| -rw-r--r-- | src/include/nodes/memnodes.h | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/include/nodes/memnodes.h b/src/include/nodes/memnodes.h index 3eeaad4928..5e036b9b6f 100644 --- a/src/include/nodes/memnodes.h +++ b/src/include/nodes/memnodes.h @@ -17,22 +17,6 @@ #include "nodes/nodes.h" /* - * A memory context can have callback functions registered on it. Any such - * function will be called once just before the context is next reset or - * deleted. The MemoryContextCallback struct describing such a callback - * typically would be allocated within the context itself, thereby avoiding - * any need to manage it explicitly (the reset/delete action will free it). - */ -typedef void (*MemoryContextCallbackFunction) (void *arg); - -typedef struct MemoryContextCallback -{ - MemoryContextCallbackFunction func; /* function to call */ - void *arg; /* argument to pass it */ - struct MemoryContextCallback *next; /* next in list of callbacks */ -} MemoryContextCallback; - -/* * MemoryContext * A logical context in which memory allocations occur. * |
