pgsql: Add flags argument to dsm_create. - Mailing list pgsql-committers

From Robert Haas
Subject pgsql: Add flags argument to dsm_create.
Date
Msg-id E1YYdvf-00017o-8V@gemulon.postgresql.org
Whole thread Raw
List pgsql-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(-)


pgsql-committers by date:

Previous
From: Bruce Momjian
Date:
Subject: pgsql: doc: ALTER DOMAIN VALIDATE CONSTRAINT can also fail
Next
From: Stephen Frost
Date:
Subject: pgsql: GetUserId() changes to has_privs_of_role()