diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-13 13:44:03 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-13 13:44:03 +0000 |
commit | 293913568e6a7a86fd1479e1cff8e2ecb58d6568 (patch) | |
tree | fc3b469a3ec5ab71b36ea97cc7aaddb838423a0c /src/test/isolation/expected/lock-update-delete.out | |
parent | Initial commit. (diff) | |
download | postgresql-16-293913568e6a7a86fd1479e1cff8e2ecb58d6568.tar.xz postgresql-16-293913568e6a7a86fd1479e1cff8e2ecb58d6568.zip |
Adding upstream version 16.2.upstream/16.2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/test/isolation/expected/lock-update-delete.out')
-rw-r--r-- | src/test/isolation/expected/lock-update-delete.out | 285 |
1 files changed, 285 insertions, 0 deletions
diff --git a/src/test/isolation/expected/lock-update-delete.out b/src/test/isolation/expected/lock-update-delete.out new file mode 100644 index 0000000..f75e25f --- /dev/null +++ b/src/test/isolation/expected/lock-update-delete.out @@ -0,0 +1,285 @@ +Parsed test spec with 2 sessions + +starting permutation: s2b s1l s2u s2_blocker1 s2_unlock s2c +pg_advisory_lock +---------------- + +(1 row) + +step s2b: BEGIN; +step s1l: SELECT * FROM foo WHERE pg_advisory_xact_lock(0) IS NOT NULL AND key = 1 FOR KEY SHARE; <waiting ...> +step s2u: UPDATE foo SET value = 2 WHERE key = 1; +step s2_blocker1: DELETE FROM foo; +step s2_unlock: SELECT pg_advisory_unlock(0); +pg_advisory_unlock +------------------ +t +(1 row) + +step s2c: COMMIT; +step s1l: <... completed> +key|value +---+----- +(0 rows) + + +starting permutation: s2b s1l s2u s2_blocker2 s2_unlock s2c +pg_advisory_lock +---------------- + +(1 row) + +step s2b: BEGIN; +step s1l: SELECT * FROM foo WHERE pg_advisory_xact_lock(0) IS NOT NULL AND key = 1 FOR KEY SHARE; <waiting ...> +step s2u: UPDATE foo SET value = 2 WHERE key = 1; +step s2_blocker2: UPDATE foo SET key = 2 WHERE key = 1; +step s2_unlock: SELECT pg_advisory_unlock(0); +pg_advisory_unlock +------------------ +t +(1 row) + +step s2c: COMMIT; +step s1l: <... completed> +key|value +---+----- +(0 rows) + + +starting permutation: s2b s1l s2u s2_blocker3 s2_unlock s2c +pg_advisory_lock +---------------- + +(1 row) + +step s2b: BEGIN; +step s1l: SELECT * FROM foo WHERE pg_advisory_xact_lock(0) IS NOT NULL AND key = 1 FOR KEY SHARE; <waiting ...> +step s2u: UPDATE foo SET value = 2 WHERE key = 1; +step s2_blocker3: UPDATE foo SET value = 2 WHERE key = 1; +step s2_unlock: SELECT pg_advisory_unlock(0); +pg_advisory_unlock +------------------ +t +(1 row) + +step s1l: <... completed> +key|value +---+----- + 1| 1 +(1 row) + +step s2c: COMMIT; + +starting permutation: s2b s1l s2u s2_blocker1 s2_unlock s2r +pg_advisory_lock +---------------- + +(1 row) + +step s2b: BEGIN; +step s1l: SELECT * FROM foo WHERE pg_advisory_xact_lock(0) IS NOT NULL AND key = 1 FOR KEY SHARE; <waiting ...> +step s2u: UPDATE foo SET value = 2 WHERE key = 1; +step s2_blocker1: DELETE FROM foo; +step s2_unlock: SELECT pg_advisory_unlock(0); +pg_advisory_unlock +------------------ +t +(1 row) + +step s2r: ROLLBACK; +step s1l: <... completed> +key|value +---+----- + 1| 1 +(1 row) + + +starting permutation: s2b s1l s2u s2_blocker2 s2_unlock s2r +pg_advisory_lock +---------------- + +(1 row) + +step s2b: BEGIN; +step s1l: SELECT * FROM foo WHERE pg_advisory_xact_lock(0) IS NOT NULL AND key = 1 FOR KEY SHARE; <waiting ...> +step s2u: UPDATE foo SET value = 2 WHERE key = 1; +step s2_blocker2: UPDATE foo SET key = 2 WHERE key = 1; +step s2_unlock: SELECT pg_advisory_unlock(0); +pg_advisory_unlock +------------------ +t +(1 row) + +step s2r: ROLLBACK; +step s1l: <... completed> +key|value +---+----- + 1| 1 +(1 row) + + +starting permutation: s2b s1l s2u s2_blocker3 s2_unlock s2r +pg_advisory_lock +---------------- + +(1 row) + +step s2b: BEGIN; +step s1l: SELECT * FROM foo WHERE pg_advisory_xact_lock(0) IS NOT NULL AND key = 1 FOR KEY SHARE; <waiting ...> +step s2u: UPDATE foo SET value = 2 WHERE key = 1; +step s2_blocker3: UPDATE foo SET value = 2 WHERE key = 1; +step s2_unlock: SELECT pg_advisory_unlock(0); +pg_advisory_unlock +------------------ +t +(1 row) + +step s1l: <... completed> +key|value +---+----- + 1| 1 +(1 row) + +step s2r: ROLLBACK; + +starting permutation: s2b s1l s2u s2_blocker1 s2c s2_unlock +pg_advisory_lock +---------------- + +(1 row) + +step s2b: BEGIN; +step s1l: SELECT * FROM foo WHERE pg_advisory_xact_lock(0) IS NOT NULL AND key = 1 FOR KEY SHARE; <waiting ...> +step s2u: UPDATE foo SET value = 2 WHERE key = 1; +step s2_blocker1: DELETE FROM foo; +step s2c: COMMIT; +step s2_unlock: SELECT pg_advisory_unlock(0); +pg_advisory_unlock +------------------ +t +(1 row) + +step s1l: <... completed> +key|value +---+----- +(0 rows) + + +starting permutation: s2b s1l s2u s2_blocker2 s2c s2_unlock +pg_advisory_lock +---------------- + +(1 row) + +step s2b: BEGIN; +step s1l: SELECT * FROM foo WHERE pg_advisory_xact_lock(0) IS NOT NULL AND key = 1 FOR KEY SHARE; <waiting ...> +step s2u: UPDATE foo SET value = 2 WHERE key = 1; +step s2_blocker2: UPDATE foo SET key = 2 WHERE key = 1; +step s2c: COMMIT; +step s2_unlock: SELECT pg_advisory_unlock(0); +pg_advisory_unlock +------------------ +t +(1 row) + +step s1l: <... completed> +key|value +---+----- +(0 rows) + + +starting permutation: s2b s1l s2u s2_blocker3 s2c s2_unlock +pg_advisory_lock +---------------- + +(1 row) + +step s2b: BEGIN; +step s1l: SELECT * FROM foo WHERE pg_advisory_xact_lock(0) IS NOT NULL AND key = 1 FOR KEY SHARE; <waiting ...> +step s2u: UPDATE foo SET value = 2 WHERE key = 1; +step s2_blocker3: UPDATE foo SET value = 2 WHERE key = 1; +step s2c: COMMIT; +step s2_unlock: SELECT pg_advisory_unlock(0); +pg_advisory_unlock +------------------ +t +(1 row) + +step s1l: <... completed> +key|value +---+----- + 1| 1 +(1 row) + + +starting permutation: s2b s1l s2u s2_blocker1 s2r s2_unlock +pg_advisory_lock +---------------- + +(1 row) + +step s2b: BEGIN; +step s1l: SELECT * FROM foo WHERE pg_advisory_xact_lock(0) IS NOT NULL AND key = 1 FOR KEY SHARE; <waiting ...> +step s2u: UPDATE foo SET value = 2 WHERE key = 1; +step s2_blocker1: DELETE FROM foo; +step s2r: ROLLBACK; +step s2_unlock: SELECT pg_advisory_unlock(0); +pg_advisory_unlock +------------------ +t +(1 row) + +step s1l: <... completed> +key|value +---+----- + 1| 1 +(1 row) + + +starting permutation: s2b s1l s2u s2_blocker2 s2r s2_unlock +pg_advisory_lock +---------------- + +(1 row) + +step s2b: BEGIN; +step s1l: SELECT * FROM foo WHERE pg_advisory_xact_lock(0) IS NOT NULL AND key = 1 FOR KEY SHARE; <waiting ...> +step s2u: UPDATE foo SET value = 2 WHERE key = 1; +step s2_blocker2: UPDATE foo SET key = 2 WHERE key = 1; +step s2r: ROLLBACK; +step s2_unlock: SELECT pg_advisory_unlock(0); +pg_advisory_unlock +------------------ +t +(1 row) + +step s1l: <... completed> +key|value +---+----- + 1| 1 +(1 row) + + +starting permutation: s2b s1l s2u s2_blocker3 s2r s2_unlock +pg_advisory_lock +---------------- + +(1 row) + +step s2b: BEGIN; +step s1l: SELECT * FROM foo WHERE pg_advisory_xact_lock(0) IS NOT NULL AND key = 1 FOR KEY SHARE; <waiting ...> +step s2u: UPDATE foo SET value = 2 WHERE key = 1; +step s2_blocker3: UPDATE foo SET value = 2 WHERE key = 1; +step s2r: ROLLBACK; +step s2_unlock: SELECT pg_advisory_unlock(0); +pg_advisory_unlock +------------------ +t +(1 row) + +step s1l: <... completed> +key|value +---+----- + 1| 1 +(1 row) + |