postgresql/src
Tom Lane 4f4ef042fd Fix possible cache invalidation failure in ReceiveSharedInvalidMessages.
Commit fad153ec45 modified sinval.c to reduce
the number of calls into sinvaladt.c (which require taking a shared lock)
by keeping a local buffer of collected-but-not-yet-processed messages.
However, if processing of the last message in a batch resulted in a
recursive call to ReceiveSharedInvalidMessages, we could overwrite that
message with a new one while the outer invalidation function was still
working on it.  This would be likely to lead to invalidation of the wrong
cache entry, allowing subsequent processing to use stale cache data.
The fix is just to make a local copy of each message while we're processing
it.

Spotted by Andres Freund.  Back-patch to 8.4 where the bug was introduced.
2014-05-05 14:43:42 -04:00
..
backend Fix possible cache invalidation failure in ReceiveSharedInvalidMessages. 2014-05-05 14:43:42 -04:00
bin Add missing SYSTEMQUOTEs 2014-04-30 10:35:46 +03:00
common pgindent run for release 9.3 2013-05-29 16:58:43 -04:00
include Fix failure to detoast fields in composite elements of structured types. 2014-05-01 15:19:10 -04:00
interfaces Fix unused-variable warning on Windows. 2014-04-17 16:12:32 -04:00
makefiles Don't use deprecated dllwrap on Cygwin. 2014-02-01 16:13:32 -05:00
pl Fix failure to detoast fields in composite elements of structured types. 2014-05-01 15:19:10 -04:00
port Fix assorted issues in client host name lookup. 2014-04-02 17:11:27 -04:00
template Remove _FORTIFY_SOURCE 2012-10-10 21:42:38 -04:00
test Fix yet another corner case in dumping rules/views with USING clauses. 2014-05-01 20:22:39 -04:00
timezone Update time zone data files to tzdata release 2014a. 2014-03-15 13:36:24 -04:00
tools Attempt to get plpython regression tests working again for MSVC builds. 2014-04-16 13:43:32 -04:00
tutorial Modernize string literal syntax in tutorial example. 2013-01-19 17:20:32 -05:00
.gitignore Convert cvsignore to gitignore, and add .gitignore for build targets. 2010-09-22 12:57:04 +02:00
bcc32.mak Autoconfiscate selection of 64-bit int type for 64-bit large object API. 2012-10-07 21:52:43 -04:00
DEVELOPERS Replace a couple of references to files that no longer exist in the source 2009-05-04 08:08:47 +00:00
Makefile Create libpgcommon, and move pg_malloc et al to it 2013-02-12 11:21:05 -03:00
Makefile.global.in Revert "Backpatch pgxs vpath build and installation fixes." 2013-10-07 22:32:04 -04:00
Makefile.shlib fix whitespace 2014-02-01 16:30:22 -05:00
nls-global.mk NLS: Use msgmerge --previous option 2012-12-13 23:12:12 -05:00
win32.mak Autoconfiscate selection of 64-bit int type for 64-bit large object API. 2012-10-07 21:52:43 -04:00