Skip to content

Commit 2985e16

Browse files
committed
regression test: fix hot standby tests by using repeatable read
Serializable transactions won't work on a Hot Standby. Also fix VACUUM/ANALYZE label mixup. Patch by Martín Marqués
1 parent 7ec7378 commit 2985e16

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy