Shmem queue is not flushed if receiver is not yet attached

Поиск
Список
Период
Сортировка
От Pavan Deolasee
Тема Shmem queue is not flushed if receiver is not yet attached
Дата
Msg-id CABOikdPkwtLLCTnzzmpSMXo3QZa2yXq0J7Q61ssdLFAJYrOVvQ@mail.gmail.com
обсуждение исходный текст
Ответы Re: Shmem queue is not flushed if receiver is not yet attached
Список pgsql-hackers
Hello,

While testing on the current PG master, I noticed a problem between backends communicating over a shared memory queue. I think `shm_mq_sendv()` fails to flush the queue, even if  `force_flush` is set to true, if the receiver is not yet attached to the queue. This simple fix solves the problem for me.

On another note, `shm_mq.h` declares `shm_mq_flush()`, but I don't see it being implemented. Maybe just a leftover from the previous work? Though it seems useful to implement that API.

Thanks,
Pavan

--
Pavan Deolasee
EnterpriseDB: https://www.enterprisedb..com
Вложения

В списке pgsql-hackers по дате отправления: