pgsql: Add palloc_extended for frontend and backend.

From: Fujii Masao <fujii(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Add palloc_extended for frontend and backend.
Date: 2015-04-03 08:36:47
Message-ID: E1Ydx5r-0001qL-Kg@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Fujii Masao 2015-04-03 09:30:02 pgsql: Rework handling of OOM when allocating record buffer in XLOG rea
Previous Message Tom Lane 2015-04-03 04:07:37 pgsql: Fix rare startup failure induced by MVCC-catalog-scans patch.