64 #define MCXT_ALLOC_HUGE 0x01 65 #define MCXT_ALLOC_NO_OOM 0x02 66 #define MCXT_ALLOC_ZERO 0x04 75 Size size,
int flags);
81 extern void pfree(
void *pointer);
91 #define palloc0fast(sz) \ 92 ( MemSetTest(0, sz) ? \ 93 MemoryContextAllocZeroAligned(CurrentMemoryContext, sz) : \ 94 MemoryContextAllocZero(CurrentMemoryContext, sz) ) 108 static inline MemoryContext
127 extern char *
pstrdup(
const char *in);
130 extern char *
pchomp(
const char *in);
MemoryContextCallbackFunction func
void * MemoryContextAllocZeroAligned(MemoryContext context, Size size)
void * MemoryContextAllocHuge(MemoryContext context, Size size)
char * pstrdup(const char *in)
static MemoryContext MemoryContextSwitchTo(MemoryContext context)
char * MemoryContextStrdup(MemoryContext context, const char *string)
void * palloc_extended(Size size, int flags)
void * MemoryContextAlloc(MemoryContext context, Size size)
void(* MemoryContextCallbackFunction)(void *arg)
#define pg_attribute_printf(f, a)
char size_t pvsnprintf(char *buf, size_t len, const char *fmt, va_list args) pg_attribute_printf(3
void * MemoryContextAllocExtended(MemoryContext context, Size size, int flags)
PGDLLIMPORT MemoryContext CurrentMemoryContext
char * pnstrdup(const char *in, Size len)
struct MemoryContextCallback MemoryContextCallback
struct MemoryContextData * MemoryContext
void pfree(void *pointer)
void MemoryContextRegisterResetCallback(MemoryContext context, MemoryContextCallback *cb)
char * psprintf(const char *fmt,...) pg_attribute_printf(1
void * MemoryContextAllocZero(MemoryContext context, Size size)
char * pchomp(const char *in)
pg_nodiscard void * repalloc_huge(void *pointer, Size size)
struct MemoryContextCallback * next
void * palloc0(Size size)
pg_nodiscard void * repalloc(void *pointer, Size size)