Skip to content

Commit bdc5400

Browse files
committed
Fix breakages of hot standby regression test.
This commit changes HS regression test so that it uses REPEATABLE READ transaction instead of SERIALIZABLE one because SERIALIZABLE transaction isolation level is not available in HS. Also this commit fixes VACUUM/ANALYZE label mixup. This was fixed in HEAD (commit 2985e16), but it should have been back-patched to 9.1 which had introduced SSI and forbidden SERIALIZABLE transaction in HS. Amit Langote
1 parent 4fb6478 commit bdc5400

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/test/regress/expected/hs_standby_allowed.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ select count(*) as should_be_1 from hs1;
4949
(1 row)
5050

5151
end;
52-
begin transaction isolation level serializable;
52+
begin transaction isolation level repeatable read;
5353
select count(*) as should_be_1 from hs1;
5454
should_be_1
5555
-------------

src/test/regress/expected/hs_standby_disallowed.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ unlisten *;
124124
ERROR: cannot execute UNLISTEN during recovery
125125
-- disallowed commands
126126
ANALYZE hs1;
127-
ERROR: cannot execute VACUUM during recovery
127+
ERROR: cannot execute ANALYZE during recovery
128128
VACUUM hs2;
129129
ERROR: cannot execute VACUUM during recovery
130130
CLUSTER hs2 using hs1_pkey;

src/test/regress/sql/hs_standby_allowed.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ begin transaction read only;
2828
select count(*) as should_be_1 from hs1;
2929
end;
3030

31-
begin transaction isolation level serializable;
31+
begin transaction isolation level repeatable read;
3232
select count(*) as should_be_1 from hs1;
3333
select count(*) as should_be_1 from hs1;
3434
select count(*) as should_be_1 from hs1;

0 commit comments

Comments
 (0)