aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2014-04-22 17:23:58 -0400
committerBruce Momjian <bruce@momjian.us>2014-04-22 17:23:58 -0400
commit2985e16031b61e9a428635e6860b3024570d3666 (patch)
tree0c47f26d5f7646c4198b6945db30a0a0e4102a40 /src
parent7ec73783d88a743799b0c262f1235f772497fb1d (diff)
downloadpostgresql-2985e16031b61e9a428635e6860b3024570d3666.tar.gz
postgresql-2985e16031b61e9a428635e6860b3024570d3666.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/test/regress/expected/hs_standby_allowed.out2
-rw-r--r--src/test/regress/expected/hs_standby_disallowed.out2
-rw-r--r--src/test/regress/sql/hs_standby_allowed.sql2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/test/regress/expected/hs_standby_allowed.out b/src/test/regress/expected/hs_standby_allowed.out
index 1abe5f6fe94..c26c9822f63 100644
--- a/src/test/regress/expected/hs_standby_allowed.out
+++ b/src/test/regress/expected/hs_standby_allowed.out
@@ -49,7 +49,7 @@ select count(*) as should_be_1 from hs1;
(1 row)
end;
-begin transaction isolation level serializable;
+begin transaction isolation level repeatable read;
select count(*) as should_be_1 from hs1;
should_be_1
-------------
diff --git a/src/test/regress/expected/hs_standby_disallowed.out b/src/test/regress/expected/hs_standby_disallowed.out
index e7f4835092f..bc117413ffd 100644
--- a/src/test/regress/expected/hs_standby_disallowed.out
+++ b/src/test/regress/expected/hs_standby_disallowed.out
@@ -124,7 +124,7 @@ unlisten *;
ERROR: cannot execute UNLISTEN during recovery
-- disallowed commands
ANALYZE hs1;
-ERROR: cannot execute VACUUM during recovery
+ERROR: cannot execute ANALYZE during recovery
VACUUM hs2;
ERROR: cannot execute VACUUM during recovery
CLUSTER hs2 using hs1_pkey;
diff --git a/src/test/regress/sql/hs_standby_allowed.sql b/src/test/regress/sql/hs_standby_allowed.sql
index 58e2c010d33..7fc22148cbc 100644
--- a/src/test/regress/sql/hs_standby_allowed.sql
+++ b/src/test/regress/sql/hs_standby_allowed.sql
@@ -28,7 +28,7 @@ begin transaction read only;
select count(*) as should_be_1 from hs1;
end;
-begin transaction isolation level serializable;
+begin transaction isolation level repeatable read;
select count(*) as should_be_1 from hs1;
select count(*) as should_be_1 from hs1;
select count(*) as should_be_1 from hs1;