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

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Consistently allow reading of messages from a detached shm_mq.
Date: 2014-04-30 21:57:14
Message-ID: E1WfcV8-0002uN-IP@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2014-04-30 22:16:56 pgsql: Improve error messages in reorderbuffer.c.
Previous Message Tom Lane 2014-04-30 21:31:01 pgsql: Rationalize common/relpath.[hc].