diff options
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/nodes/memnodes.h | 3 | ||||
| -rw-r--r-- | src/include/storage/lwlock.h | 1 | ||||
| -rw-r--r-- | src/include/utils/memutils.h | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/src/include/nodes/memnodes.h b/src/include/nodes/memnodes.h index f79ebd423fa..ad77509b0ca 100644 --- a/src/include/nodes/memnodes.h +++ b/src/include/nodes/memnodes.h @@ -60,6 +60,9 @@ typedef struct MemoryContextData MemoryContext nextchild; /* next child of same parent */ char *name; /* context name (just for debugging) */ bool isReset; /* T = no space alloced since last reset */ +#ifdef USE_ASSERT_CHECKING + bool allowInCritSection; /* allow palloc in critical section */ +#endif } MemoryContextData; /* utils/palloc.h contains typedef struct MemoryContextData *MemoryContext */ diff --git a/src/include/storage/lwlock.h b/src/include/storage/lwlock.h index d588b1434e2..1d90b9f8586 100644 --- a/src/include/storage/lwlock.h +++ b/src/include/storage/lwlock.h @@ -182,6 +182,7 @@ extern void LWLockUpdateVar(LWLock *lock, uint64 *valptr, uint64 value); extern Size LWLockShmemSize(void); extern void CreateLWLocks(void); +extern void InitLWLockAccess(void); /* * The traditional method for obtaining an lwlock for use by an extension is diff --git a/src/include/utils/memutils.h b/src/include/utils/memutils.h index 59d0aecfbbc..2fede860276 100644 --- a/src/include/utils/memutils.h +++ b/src/include/utils/memutils.h @@ -101,6 +101,8 @@ extern MemoryContext GetMemoryChunkContext(void *pointer); extern MemoryContext MemoryContextGetParent(MemoryContext context); extern bool MemoryContextIsEmpty(MemoryContext context); extern void MemoryContextStats(MemoryContext context); +extern void MemoryContextAllowInCriticalSection(MemoryContext context, + bool allow); #ifdef MEMORY_CONTEXT_CHECKING extern void MemoryContextCheck(MemoryContext context); |
