Add flags argument to dsm_create.
authorRobert Haas <rhaas@postgresql.org>
Thu, 19 Mar 2015 17:02:16 +0000 (13:02 -0400)
committerRobert Haas <rhaas@postgresql.org>
Thu, 19 Mar 2015 17:03:03 +0000 (13:03 -0400)
commit12968cf4085409c50f70c6643d92befdb34008f6
tree5b54eca34e67eb16387e94c4d3c69acf03678140
parent5f286c02423f28c8e4c4d07569417a3d4f40f1a0
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.
src/backend/storage/ipc/dsm.c
src/include/storage/dsm.h
src/test/modules/test_shm_mq/setup.c