-
Notifications
You must be signed in to change notification settings - Fork 673
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Isolation Test Failure in isolation_multiuser_locking in PG17
- Loading branch information
Showing
2 changed files
with
362 additions
and
0 deletions.
There are no files selected for viewing
358 changes: 358 additions & 0 deletions
358
src/test/regress/expected/isolation_multiuser_locking_0.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,358 @@ | ||
Parsed test spec with 2 sessions | ||
|
||
starting permutation: s1-no-connection-cache s2-no-connection-cache s1-begin s2-begin s2-reindex s1-insert s2-commit s1-commit | ||
create_distributed_table | ||
--------------------------------------------------------------------- | ||
|
||
(1 row) | ||
|
||
step s1-no-connection-cache: | ||
SET citus.max_cached_conns_per_worker to 0; | ||
|
||
step s2-no-connection-cache: | ||
SET citus.max_cached_conns_per_worker to 0; | ||
|
||
step s1-begin: | ||
BEGIN; | ||
SET ROLE test_user_1; | ||
|
||
step s2-begin: | ||
BEGIN; | ||
SET ROLE test_user_2; | ||
|
||
step s2-reindex: | ||
REINDEX TABLE test_table; | ||
|
||
ERROR: permission denied for table test_table | ||
step s1-insert: | ||
UPDATE test_table SET column2 = 1; | ||
|
||
step s2-commit: | ||
COMMIT; | ||
|
||
step s1-commit: | ||
COMMIT; | ||
|
||
|
||
starting permutation: s1-no-connection-cache s2-no-connection-cache s1-grant s1-begin s2-begin s2-reindex s1-insert s2-insert s2-commit s1-commit | ||
create_distributed_table | ||
--------------------------------------------------------------------- | ||
|
||
(1 row) | ||
|
||
step s1-no-connection-cache: | ||
SET citus.max_cached_conns_per_worker to 0; | ||
|
||
step s2-no-connection-cache: | ||
SET citus.max_cached_conns_per_worker to 0; | ||
|
||
step s1-grant: | ||
SET ROLE test_user_1; | ||
GRANT ALL ON test_table TO test_user_2; | ||
|
||
step s1-begin: | ||
BEGIN; | ||
SET ROLE test_user_1; | ||
|
||
step s2-begin: | ||
BEGIN; | ||
SET ROLE test_user_2; | ||
|
||
step s2-reindex: | ||
REINDEX TABLE test_table; | ||
|
||
step s1-insert: | ||
UPDATE test_table SET column2 = 1; | ||
<waiting ...> | ||
step s2-insert: | ||
UPDATE test_table SET column2 = 2; | ||
|
||
step s2-commit: | ||
COMMIT; | ||
|
||
step s1-insert: <... completed> | ||
step s1-commit: | ||
COMMIT; | ||
|
||
|
||
starting permutation: s1-no-connection-cache s2-no-connection-cache s1-grant s1-begin s2-begin s1-reindex s2-insert s1-insert s1-commit s2-commit | ||
create_distributed_table | ||
--------------------------------------------------------------------- | ||
|
||
(1 row) | ||
|
||
step s1-no-connection-cache: | ||
SET citus.max_cached_conns_per_worker to 0; | ||
|
||
step s2-no-connection-cache: | ||
SET citus.max_cached_conns_per_worker to 0; | ||
|
||
step s1-grant: | ||
SET ROLE test_user_1; | ||
GRANT ALL ON test_table TO test_user_2; | ||
|
||
step s1-begin: | ||
BEGIN; | ||
SET ROLE test_user_1; | ||
|
||
step s2-begin: | ||
BEGIN; | ||
SET ROLE test_user_2; | ||
|
||
step s1-reindex: | ||
REINDEX TABLE test_table; | ||
|
||
step s2-insert: | ||
UPDATE test_table SET column2 = 2; | ||
<waiting ...> | ||
step s1-insert: | ||
UPDATE test_table SET column2 = 1; | ||
|
||
step s1-commit: | ||
COMMIT; | ||
|
||
step s2-insert: <... completed> | ||
step s2-commit: | ||
COMMIT; | ||
|
||
|
||
starting permutation: s1-no-connection-cache s2-no-connection-cache s1-begin s2-begin s2-index s1-insert s2-commit s1-commit s2-drop-index | ||
create_distributed_table | ||
--------------------------------------------------------------------- | ||
|
||
(1 row) | ||
|
||
step s1-no-connection-cache: | ||
SET citus.max_cached_conns_per_worker to 0; | ||
|
||
step s2-no-connection-cache: | ||
SET citus.max_cached_conns_per_worker to 0; | ||
|
||
step s1-begin: | ||
BEGIN; | ||
SET ROLE test_user_1; | ||
|
||
step s2-begin: | ||
BEGIN; | ||
SET ROLE test_user_2; | ||
|
||
step s2-index: | ||
CREATE INDEX test_index ON test_table(column1); | ||
|
||
ERROR: must be owner of table test_table | ||
step s1-insert: | ||
UPDATE test_table SET column2 = 1; | ||
|
||
step s2-commit: | ||
COMMIT; | ||
|
||
step s1-commit: | ||
COMMIT; | ||
|
||
step s2-drop-index: | ||
DROP INDEX IF EXISTS test_index; | ||
|
||
|
||
starting permutation: s1-no-connection-cache s2-no-connection-cache s1-grant s1-begin s2-begin s2-insert s1-index s2-insert s2-commit s1-commit s1-drop-index | ||
create_distributed_table | ||
--------------------------------------------------------------------- | ||
|
||
(1 row) | ||
|
||
step s1-no-connection-cache: | ||
SET citus.max_cached_conns_per_worker to 0; | ||
|
||
step s2-no-connection-cache: | ||
SET citus.max_cached_conns_per_worker to 0; | ||
|
||
step s1-grant: | ||
SET ROLE test_user_1; | ||
GRANT ALL ON test_table TO test_user_2; | ||
|
||
step s1-begin: | ||
BEGIN; | ||
SET ROLE test_user_1; | ||
|
||
step s2-begin: | ||
BEGIN; | ||
SET ROLE test_user_2; | ||
|
||
step s2-insert: | ||
UPDATE test_table SET column2 = 2; | ||
|
||
step s1-index: | ||
CREATE INDEX test_index ON test_table(column1); | ||
<waiting ...> | ||
step s2-insert: | ||
UPDATE test_table SET column2 = 2; | ||
|
||
step s2-commit: | ||
COMMIT; | ||
|
||
step s1-index: <... completed> | ||
step s1-commit: | ||
COMMIT; | ||
|
||
step s1-drop-index: | ||
DROP INDEX IF EXISTS test_index; | ||
|
||
|
||
starting permutation: s1-no-connection-cache s2-no-connection-cache s1-grant s1-begin s2-begin s1-index s2-index s1-insert s1-commit s2-commit s1-drop-index s2-drop-index | ||
create_distributed_table | ||
--------------------------------------------------------------------- | ||
|
||
(1 row) | ||
|
||
step s1-no-connection-cache: | ||
SET citus.max_cached_conns_per_worker to 0; | ||
|
||
step s2-no-connection-cache: | ||
SET citus.max_cached_conns_per_worker to 0; | ||
|
||
step s1-grant: | ||
SET ROLE test_user_1; | ||
GRANT ALL ON test_table TO test_user_2; | ||
|
||
step s1-begin: | ||
BEGIN; | ||
SET ROLE test_user_1; | ||
|
||
step s2-begin: | ||
BEGIN; | ||
SET ROLE test_user_2; | ||
|
||
step s1-index: | ||
CREATE INDEX test_index ON test_table(column1); | ||
|
||
step s2-index: | ||
CREATE INDEX test_index ON test_table(column1); | ||
|
||
ERROR: must be owner of table test_table | ||
step s1-insert: | ||
UPDATE test_table SET column2 = 1; | ||
|
||
step s1-commit: | ||
COMMIT; | ||
|
||
step s2-commit: | ||
COMMIT; | ||
|
||
step s1-drop-index: | ||
DROP INDEX IF EXISTS test_index; | ||
|
||
step s2-drop-index: | ||
DROP INDEX IF EXISTS test_index; | ||
|
||
|
||
starting permutation: s1-no-connection-cache s2-no-connection-cache s1-begin s2-begin s2-truncate s1-insert s2-commit s1-commit | ||
create_distributed_table | ||
--------------------------------------------------------------------- | ||
|
||
(1 row) | ||
|
||
step s1-no-connection-cache: | ||
SET citus.max_cached_conns_per_worker to 0; | ||
|
||
step s2-no-connection-cache: | ||
SET citus.max_cached_conns_per_worker to 0; | ||
|
||
step s1-begin: | ||
BEGIN; | ||
SET ROLE test_user_1; | ||
|
||
step s2-begin: | ||
BEGIN; | ||
SET ROLE test_user_2; | ||
|
||
step s2-truncate: | ||
TRUNCATE test_table; | ||
|
||
ERROR: permission denied for table test_table | ||
step s1-insert: | ||
UPDATE test_table SET column2 = 1; | ||
|
||
step s2-commit: | ||
COMMIT; | ||
|
||
step s1-commit: | ||
COMMIT; | ||
|
||
|
||
starting permutation: s1-no-connection-cache s2-no-connection-cache s1-grant s1-begin s2-begin s1-truncate s2-insert s1-insert s1-commit s2-commit | ||
create_distributed_table | ||
--------------------------------------------------------------------- | ||
|
||
(1 row) | ||
|
||
step s1-no-connection-cache: | ||
SET citus.max_cached_conns_per_worker to 0; | ||
|
||
step s2-no-connection-cache: | ||
SET citus.max_cached_conns_per_worker to 0; | ||
|
||
step s1-grant: | ||
SET ROLE test_user_1; | ||
GRANT ALL ON test_table TO test_user_2; | ||
|
||
step s1-begin: | ||
BEGIN; | ||
SET ROLE test_user_1; | ||
|
||
step s2-begin: | ||
BEGIN; | ||
SET ROLE test_user_2; | ||
|
||
step s1-truncate: | ||
TRUNCATE test_table; | ||
|
||
step s2-insert: | ||
UPDATE test_table SET column2 = 2; | ||
<waiting ...> | ||
step s1-insert: | ||
UPDATE test_table SET column2 = 1; | ||
|
||
step s1-commit: | ||
COMMIT; | ||
|
||
step s2-insert: <... completed> | ||
step s2-commit: | ||
COMMIT; | ||
|
||
|
||
starting permutation: s1-no-connection-cache s2-no-connection-cache s1-grant s1-begin s2-begin s1-truncate s2-truncate s1-commit s2-commit | ||
create_distributed_table | ||
--------------------------------------------------------------------- | ||
|
||
(1 row) | ||
|
||
step s1-no-connection-cache: | ||
SET citus.max_cached_conns_per_worker to 0; | ||
|
||
step s2-no-connection-cache: | ||
SET citus.max_cached_conns_per_worker to 0; | ||
|
||
step s1-grant: | ||
SET ROLE test_user_1; | ||
GRANT ALL ON test_table TO test_user_2; | ||
|
||
step s1-begin: | ||
BEGIN; | ||
SET ROLE test_user_1; | ||
|
||
step s2-begin: | ||
BEGIN; | ||
SET ROLE test_user_2; | ||
|
||
step s1-truncate: | ||
TRUNCATE test_table; | ||
|
||
step s2-truncate: | ||
TRUNCATE test_table; | ||
<waiting ...> | ||
step s1-commit: | ||
COMMIT; | ||
|
||
step s2-truncate: <... completed> | ||
step s2-commit: | ||
COMMIT; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters