pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Fujii Masao <fujii@postgresql.org>
To: pgsql-committers@postgresql.org
Subject: pgsql: Add palloc_extended for frontend and backend.
Date: Fri, 03 Apr 2015 08:36:47 +0000
Message-ID: <E1Ydx5r-0001qL-Kg@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


Message-ID: <E1Ydx5r-0001qL-Kg@gemulon.postgresql.org>
Permalink:  ../E1Ydx5r-0001qL-Kg@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1Ydx5r-0001qL-Kg@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: fujii@postgresql.org
  Subject: Re: pgsql: Add palloc_extended for frontend and backend.
  In-Reply-To: <E1Ydx5r-0001qL-Kg@gemulon.postgresql.org>
  References: <E1Ydx5r-0001qL-Kg@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox