diff options
| author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2013-11-29 16:08:06 -0300 |
|---|---|---|
| committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2013-11-29 21:47:21 -0300 |
| commit | 1ce150b7bb14105ddc190c5f1acf2ae1a9b2854a (patch) | |
| tree | dd072a896cb56b945a500c9ce1e5dfff8bd1d954 /src/test/isolation/expected | |
| parent | 1df0122daa6510eed4146033379a5055f66f5a8e (diff) | |
| download | postgresql-1ce150b7bb14105ddc190c5f1acf2ae1a9b2854a.tar.gz | |
Don't TransactionIdDidAbort in HeapTupleGetUpdateXid
It is dangerous to do so, because some code expects to be able to see what's
the true Xmax even if it is aborted (particularly while traversing HOT
chains). So don't do it, and instead rely on the callers to verify for
abortedness, if necessary.
Several race conditions and bugs fixed in the process. One isolation test
changes the expected output due to these.
This also reverts commit c235a6a589b, which is no longer necessary.
Backpatch to 9.3, where this function was introduced.
Andres Freund
Diffstat (limited to 'src/test/isolation/expected')
| -rw-r--r-- | src/test/isolation/expected/delete-abort-savept.out | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/test/isolation/expected/delete-abort-savept.out b/src/test/isolation/expected/delete-abort-savept.out index 3420cf47d7..5b8c444728 100644 --- a/src/test/isolation/expected/delete-abort-savept.out +++ b/src/test/isolation/expected/delete-abort-savept.out @@ -23,12 +23,11 @@ key value step s1svp: SAVEPOINT f; step s1d: DELETE FROM foo; step s1r: ROLLBACK TO f; -step s2l: SELECT * FROM foo FOR UPDATE; <waiting ...> -step s1c: COMMIT; -step s2l: <... completed> +step s2l: SELECT * FROM foo FOR UPDATE; key value 1 1 +step s1c: COMMIT; step s2c: COMMIT; starting permutation: s1l s1svp s1d s1r s2l s2c s1c @@ -39,8 +38,12 @@ key value step s1svp: SAVEPOINT f; step s1d: DELETE FROM foo; step s1r: ROLLBACK TO f; -step s2l: SELECT * FROM foo FOR UPDATE; <waiting ...> -invalid permutation detected +step s2l: SELECT * FROM foo FOR UPDATE; +key value + +1 1 +step s2c: COMMIT; +step s1c: COMMIT; starting permutation: s1l s1svp s1d s2l s1r s1c s2c step s1l: SELECT * FROM foo FOR KEY SHARE; |
