postgresql/src/test
Tom Lane d4fa18a551 Avoid testing tuple visibility without buffer lock in RI_FKey_check().
Despite the argumentation I wrote in commit 7a2fe85b0, it's unsafe to do
this, because in corner cases it's possible for HeapTupleSatisfiesSelf
to try to set hint bits on the target tuple; and at least since 8.2 we
have required the buffer content lock to be held while setting hint bits.

The added regression test exercises one such corner case.  Unpatched, it
causes an assertion failure in assert-enabled builds, or otherwise would
cause a hint bit change in a buffer we don't hold lock on, which given
the right race condition could result in checksum failures or other data
consistency problems.  The odds of a problem in the field are probably
pretty small, but nonetheless back-patch to all supported branches.

Report: <19391.1477244876@sss.pgh.pa.us>
2016-10-23 15:01:24 -04:00
..
examples Include <sys/select.h> where needed 2016-09-27 01:05:21 -03:00
isolation Fix portability issue in isolationtester grammar. 2015-05-27 19:14:40 -04:00
locale Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
mb Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
performance Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
regress Avoid testing tuple visibility without buffer lock in RI_FKey_check(). 2016-10-23 15:01:24 -04:00
thread Check the return code of pthread_create(). Otherwise we go into an infinite 2011-05-27 12:55:02 +03:00
Makefile Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00