pgsql: Consistently allow reading of messages from a detached shm_mq. - Mailing list pgsql-committers

From Robert Haas
Subject pgsql: Consistently allow reading of messages from a detached shm_mq.
Date
Msg-id E1WfcV8-0002uN-IP@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Rationalize common/relpath.[hc].
Next
From: Tom Lane
Date:
Subject: pgsql: Improve error messages in reorderbuffer.c.