pgsql: Add palloc_extended for frontend and backend. - Mailing list pgsql-committers

From Fujii Masao
Subject pgsql: Add palloc_extended for frontend and backend.
Date
Msg-id E1Ydx5r-0001qL-Kg@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Fix rare startup failure induced by MVCC-catalog-scans patch.
Next
From: Fujii Masao
Date:
Subject: pgsql: Rework handling of OOM when allocating record buffer in XLOG rea