Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2985e16

Browse files
committed
regression test: fix hot standby tests by using repeatable read
Serializable transactions won't work on a Hot Standby. Also fixVACUUM/ANALYZE label mixup.Patch by Martín Marqués
1 parent7ec7378 commit2985e16

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 levelserializable;
52+
begin transaction isolation levelrepeatable 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 executeVACUUM during recovery
127+
ERROR: cannot executeANALYZE 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
selectcount(*)as should_be_1from hs1;
2929
end;
3030

31-
begin transaction isolation levelserializable;
31+
begin transaction isolation levelrepeatable read;
3232
selectcount(*)as should_be_1from hs1;
3333
selectcount(*)as should_be_1from hs1;
3434
selectcount(*)as should_be_1from hs1;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp