postgresql/src/test
Heikki Linnakangas 928408d9e5 Fix a bug with SSI and prepared transactions:
If there's a dangerous structure T0 ---> T1 ---> T2, and T2 commits first,
we need to abort something. If T2 commits before both conflicts appear,
then it should be caught by OnConflict_CheckForSerializationFailure. If
both conflicts appear before T2 commits, it should be caught by
PreCommit_CheckForSerializationFailure. But that is actually run when
T2 *prepares*. Fix that in OnConflict_CheckForSerializationFailure, by
treating a prepared T2 as if it committed already.

This is mostly a problem for prepared transactions, which are in prepared
state for some time, but also for regular transactions because they also go
through the prepared state in the SSI code for a short moment when they're
committed.

Kevin Grittner and Dan Ports
2011-07-07 18:12:15 +03:00
..
examples Capitalization fixes 2011-06-19 00:37:30 +03:00
isolation Use single quotes in preference to double quotes for protecting pathnames. 2011-06-15 21:45:23 -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 Fix a bug with SSI and prepared transactions: 2011-07-07 18:12:15 +03: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