From: | Robert Haas <rhaas(at)postgresql(dot)org> |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Subject: | pgsql: Add flags argument to dsm_create. |
Date: | 2015-03-19 17:08:19 |
Message-ID: | E1YYdvf-00017o-8V@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Stephen Frost | 2015-03-19 19:02:47 | pgsql: GetUserId() changes to has_privs_of_role() |
Previous Message | Bruce Momjian | 2015-03-19 17:02:15 | pgsql: doc: ALTER DOMAIN VALIDATE CONSTRAINT can also fail |