pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Robert Haas <rhaas@postgresql.org>
To: pgsql-committers@postgresql.org
Subject: pgsql: Add flags argument to dsm_create.
Date: Thu, 19 Mar 2015 17:08:19 +0000
Message-ID: <E1YYdvf-00017o-8V@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Add flags argument to dsm_create.

Right now, there's only one flag, DSM_CREATE_NULL_IF_MAXSEGMENTS,
which suppresses the error that would normally be thrown when the
maximum number of segments already exists, instead returning NULL.
It might be useful to add more flags in the future, such as one to
ignore allocation errors, but I haven't done that here.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/12968cf4085409c50f70c6643d92befdb34008f6

Modified Files
--------------
src/backend/storage/ipc/dsm.c        |   31 +++++++++++++++++++++++++++++--
src/include/storage/dsm.h            |    4 +++-
src/test/modules/test_shm_mq/setup.c |    2 +-
3 files changed, 33 insertions(+), 4 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: <E1YYdvf-00017o-8V@gemulon.postgresql.org>
Permalink:  ../E1YYdvf-00017o-8V@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1YYdvf-00017o-8V@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: rhaas@postgresql.org
  Subject: Re: pgsql: Add flags argument to dsm_create.
  In-Reply-To: <E1YYdvf-00017o-8V@gemulon.postgresql.org>
  References: <E1YYdvf-00017o-8V@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