diff options
author | Simon Riggs <simon@2ndQuadrant.com> | 2017-11-23 05:45:07 +1100 |
---|---|---|
committer | Simon Riggs <simon@2ndQuadrant.com> | 2017-11-23 05:45:07 +1100 |
commit | a4ccc1cef5a04cc054af83bc4582a045d5232cb3 (patch) | |
tree | 897617e76a9777c039257312e2e4edcba1cbe4b7 /src/include/nodes/memnodes.h | |
parent | 3bae43ca4dc6c3123788044436521f1d33d9f930 (diff) |
Generational memory allocator
Add new style of memory allocator, known as Generational
appropriate for use in cases where memory is allocated
and then freed in roughly oldest first order (FIFO).
Use new allocator for logical decoding’s reorderbuffer
to significantly reduce memory usage and improve performance.
Author: Tomas Vondra
Reviewed-by: Simon Riggs
Diffstat (limited to 'src/include/nodes/memnodes.h')
-rw-r--r-- | src/include/nodes/memnodes.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/include/nodes/memnodes.h b/src/include/nodes/memnodes.h index 7a0c6763dfe..e22d9fb1781 100644 --- a/src/include/nodes/memnodes.h +++ b/src/include/nodes/memnodes.h @@ -96,6 +96,8 @@ typedef struct MemoryContextData */ #define MemoryContextIsValid(context) \ ((context) != NULL && \ - (IsA((context), AllocSetContext) || IsA((context), SlabContext))) + (IsA((context), AllocSetContext) || \ + IsA((context), SlabContext) || \ + IsA((context), GenerationContext))) #endif /* MEMNODES_H */ |