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  (Robert Haas <robertmhaas@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: "osumi.takamichi@fujitsu.com"
Дата:
Сообщение: RE: Skipping logical replication transactions on subscriber side
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: Out-of-tree certificate interferes ssltest