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(-)
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера