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

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

From
Robert Haas
Date:
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(-)