postgresql/src/backend/storage
Robert Haas 44339b892a shm_mq: After a send fails with SHM_MQ_DETACHED, later ones should too.
Prior to this patch, it was occasionally possible, after shm_mq_sendv
had previously returned SHM_MQ_DETACHED, for a later shm_mq_sendv
operation to fail an assertion instead of just again returning
SHM_MQ_ATTACHED.  From the shm_mq code's point of view, it was
expecting to be called again with the same arguments, since the
previous operation had only partially completed.  However, a caller
who isn't using non-blocking mode won't be prepared to repeat the call
with the same arguments, and this code shouldn't expect that they
will.  Repair in such a way that we'll be OK whether the next call
uses the same arguments or not.

Found by Andreas Seltenreich.  Analysis and sketch of fix by Amit
Kapila.  Patch by me, reviewed by Amit Kapila.
2016-06-06 14:35:30 -04:00
..
buffer Fix various common mispellings. 2016-06-03 16:08:45 +01:00
file Widen amount-to-flush arguments of FileWriteback and callers. 2016-04-13 18:12:06 -04:00
freespace Revert no-op changes to BufferGetPage() 2016-04-20 08:31:19 -05:00
ipc shm_mq: After a send fails with SHM_MQ_DETACHED, later ones should too. 2016-06-06 14:35:30 -04:00
large_object Update copyright for 2016 2016-01-02 13:33:40 -05:00
lmgr Adjust spin.c's spinlock emulation so that 0 is not a valid spinlock value. 2016-04-16 19:53:38 -04:00
page Fix PageAddItem BRIN bug 2016-05-30 14:47:22 -04:00
smgr Fix various common mispellings. 2016-06-03 16:08:45 +01:00
Makefile Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00