Обсуждение: pgsql: Consistently allow reading of messages from a detached shm_mq.

Поиск
Список
Период
Сортировка

pgsql: Consistently allow reading of messages from a detached shm_mq.

От
Robert Haas
Дата:
Consistently allow reading of messages from a detached shm_mq.

This was intended to work always, but the previous code only allowed
it if at least one message was successfully read by the receiver
before the sender detached the queue.

Report by Petr Jelinek.  Patch by me.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/5ec45bb7fa0a1495a360165a12ba5d6b4587bb4a

Modified Files
--------------
src/backend/storage/ipc/shm_mq.c |    3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)