Add flags argument to dsm_create.

Robert Haas <rhaas@postgresql.org>

Commit: 12968cf4085409c50f70c6643d92befdb34008f6
Author: Robert Haas <rhaas@postgresql.org>
Date: 2015-03-19T17:03:03Z
Releases: 9.5.0
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.

Files

PathChange+/−
src/backend/storage/ipc/dsm.c modified +29 −2
src/include/storage/dsm.h modified +3 −1
src/test/modules/test_shm_mq/setup.c modified +1 −1