pgsql: Don't send protocol messages to a shm_mq that no longer exists.
В списке pgsql-committers по дате отправления:
| От | Robert Haas |
|---|---|
| Тема | pgsql: Don't send protocol messages to a shm_mq that no longer exists. |
| Дата | |
| Msg-id | E1Zn5PP-0008DH-HW@gemulon.postgresql.org обсуждение |
| Список | pgsql-committers |
Don't send protocol messages to a shm_mq that no longer exists. Commit 2bd9e412f92bc6a68f3e8bcb18e04955cc35001d introduced a mechanism for relaying protocol messages from a background worker to another backend via a shm_mq. However, there was no provision for shutting down the communication channel. Therefore, a protocol message sent late in the shutdown sequence, such as a DEBUG message resulting from cranking up log_min_messages, could crash the server. To fix, install an on_dsm_detach callback that disables sending messages to the shm_mq when the associated DSM is detached. Branch ------ REL9_5_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/26981d292758c6ee9185332e4abc990ff19c81a2 Modified Files -------------- src/backend/access/transam/parallel.c | 2 +- src/backend/libpq/pqmq.c | 28 ++++++++++++++++++++++++++-- src/backend/storage/ipc/shm_mq.c | 9 +++++++++ src/include/libpq/pqmq.h | 2 +- src/include/storage/shm_mq.h | 3 +++ 5 files changed, 40 insertions(+), 4 deletions(-)
В списке pgsql-committers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера