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.
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/8c8a886268dfa616193dadc98e44e0715f884614
Modified Files
--------------
src/backend/utils/mmgr/mcxt.c | 37 ++++++++++++++++++++++++++++++++
src/common/fe_memutils.c | 43 ++++++++++++++++++++++++++++----------
src/include/common/fe_memutils.h | 16 +++++++++++++-
src/include/utils/palloc.h | 1 +
4 files changed, 85 insertions(+), 12 deletions(-)