• Fujii Masao's avatar
    Add palloc_extended for frontend and backend. · 8c8a8862
    Fujii Masao authored
    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.
    8c8a8862
mcxt.c 29.8 KB