diff --git a/src/test/regress/expected/prepared_xacts.out b/src/test/regress/expected/prepared_xacts.out index ef7034b5884..01cf87e9d7c 100644 --- a/src/test/regress/expected/prepared_xacts.out +++ b/src/test/regress/expected/prepared_xacts.out @@ -195,9 +195,8 @@ SELECT gid FROM pg_prepared_xacts; -- pxtest3 should be locked because of the pending DROP begin; -set statement_timeout to 2000; -SELECT * FROM pxtest3; -ERROR: canceling statement due to statement timeout +lock table pxtest3 in access share mode nowait; +ERROR: could not obtain lock on relation "pxtest3" rollback; -- Disconnect, we will continue testing in a different backend \c - @@ -211,9 +210,8 @@ SELECT gid FROM pg_prepared_xacts; -- pxtest3 should still be locked because of the pending DROP begin; -set statement_timeout to 2000; -SELECT * FROM pxtest3; -ERROR: canceling statement due to statement timeout +lock table pxtest3 in access share mode nowait; +ERROR: could not obtain lock on relation "pxtest3" rollback; -- Commit table creation COMMIT PREPARED 'regress-one'; diff --git a/src/test/regress/expected/prepared_xacts_1.out b/src/test/regress/expected/prepared_xacts_1.out index 5078bf6ba98..0857d259e07 100644 --- a/src/test/regress/expected/prepared_xacts_1.out +++ b/src/test/regress/expected/prepared_xacts_1.out @@ -199,12 +199,7 @@ SELECT gid FROM pg_prepared_xacts; -- pxtest3 should be locked because of the pending DROP begin; -set statement_timeout to 2000; -SELECT * FROM pxtest3; - fff ------ -(0 rows) - +lock table pxtest3 in access share mode nowait; rollback; -- Disconnect, we will continue testing in a different backend \c - @@ -216,12 +211,7 @@ SELECT gid FROM pg_prepared_xacts; -- pxtest3 should still be locked because of the pending DROP begin; -set statement_timeout to 2000; -SELECT * FROM pxtest3; - fff ------ -(0 rows) - +lock table pxtest3 in access share mode nowait; rollback; -- Commit table creation COMMIT PREPARED 'regress-one'; diff --git a/src/test/regress/sql/prepared_xacts.sql b/src/test/regress/sql/prepared_xacts.sql index dfb20a18e7c..d8249a27dc2 100644 --- a/src/test/regress/sql/prepared_xacts.sql +++ b/src/test/regress/sql/prepared_xacts.sql @@ -123,8 +123,7 @@ SELECT gid FROM pg_prepared_xacts; -- pxtest3 should be locked because of the pending DROP begin; -set statement_timeout to 2000; -SELECT * FROM pxtest3; +lock table pxtest3 in access share mode nowait; rollback; -- Disconnect, we will continue testing in a different backend @@ -135,8 +134,7 @@ SELECT gid FROM pg_prepared_xacts; -- pxtest3 should still be locked because of the pending DROP begin; -set statement_timeout to 2000; -SELECT * FROM pxtest3; +lock table pxtest3 in access share mode nowait; rollback; -- Commit table creation