postgresql/src/backend
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
..
access Fix typo. 2016-06-06 07:58:50 -04:00
bootstrap Revert CREATE INDEX ... INCLUDING ... 2016-04-08 21:52:13 +03:00
catalog Fix various common mispellings. 2016-06-03 16:08:45 +01:00
commands Fix comment to be more accurate. 2016-06-03 11:56:57 -04:00
executor Properly initialize SortSupport for ORDER BY rechecks in nodeIndexscan.c. 2016-06-05 11:53:06 -04:00
foreign Fix whitespace 2016-04-11 14:44:51 -04:00
lib Remove mergeHyperLogLog. 2016-04-27 10:55:32 -04:00
libpq Add authentication parameters compat_realm and upn_usename for SSPI 2016-04-08 20:28:38 +02:00
main Fix various common mispellings. 2016-06-03 16:08:45 +01:00
nodes Fix various common mispellings. 2016-06-03 16:08:45 +01:00
optimizer Remove bogus code to apply PathTargets to partial paths. 2016-06-03 14:27:33 -04:00
parser Fix grammar's AND/OR flattening to work with operator_precedence_warning. 2016-06-03 19:12:29 -04:00
po Translation updates 2016-05-09 10:04:41 -04:00
port Support building with Visual Studio 2015 2016-04-29 08:09:07 -04:00
postmaster Avoid useless closely-spaced writes of statistics files. 2016-05-31 15:55:15 -04:00
regex Suppress compiler warnings about useless comparison of unsigned to zero. 2016-02-15 17:12:16 -05:00
replication Fix various common mispellings. 2016-06-03 16:08:45 +01:00
rewrite Improve error message for rejecting RETURNING clauses with dropped columns. 2016-02-29 19:11:38 -05:00
snowball Update copyright for 2016 2016-01-02 13:33:40 -05:00
storage shm_mq: After a send fails with SHM_MQ_DETACHED, later ones should too. 2016-06-06 14:35:30 -04:00
tcop Be more predictable about reporting "lock timeout" vs "statement timeout". 2016-05-27 10:40:20 -04:00
tsearch Fix various common mispellings. 2016-06-03 16:08:45 +01:00
utils Inline the easy cases in MakeExpandedObjectReadOnly(). 2016-06-03 18:34:05 -04:00
.gitignore Add .gitignore entries for AIX-specific intermediate build artifacts. 2015-07-08 20:44:22 -04:00
Makefile Support multiple synchronous standby servers. 2016-04-06 17:18:25 +09:00
common.mk Remove maintainer-check target, fold into normal build 2013-10-10 20:11:56 -04:00
nls.mk Remove trailing slashes from directories in find command 2015-09-18 22:06:54 -04:00