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 ([email protected]) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers
