mirror of
https://github.com/postgres/postgres.git
synced 2025-07-08 11:42:09 +03:00
Add palloc_extended for frontend and backend.
This commit also adds pg_malloc_extended for frontend. These interfaces can be used to control at a lower level memory allocation using an interface similar to MemoryContextAllocExtended. For example, the callers can specify MCXT_ALLOC_NO_OOM if they want to suppress the "out of memory" error while allocating the memory and handle a NULL return value. Michael Paquier, reviewed by me.
This commit is contained in:
@ -76,6 +76,7 @@ extern void *MemoryContextAllocExtended(MemoryContext context,
|
||||
|
||||
extern void *palloc(Size size);
|
||||
extern void *palloc0(Size size);
|
||||
extern void *palloc_extended(Size size, int flags);
|
||||
extern void *repalloc(void *pointer, Size size);
|
||||
extern void pfree(void *pointer);
|
||||
|
||||
|
Reference in New Issue
Block a user