]> granicus.if.org Git - postgresql/commitdiff
regression test: fix hot standby tests by using repeatable read
authorBruce Momjian <bruce@momjian.us>
Tue, 22 Apr 2014 21:23:58 +0000 (17:23 -0400)
committerBruce Momjian <bruce@momjian.us>
Tue, 22 Apr 2014 21:23:58 +0000 (17:23 -0400)
Serializable transactions won't work on a Hot Standby.  Also fix
VACUUM/ANALYZE label mixup.

Patch by Martín Marqués

src/test/regress/expected/hs_standby_allowed.out
src/test/regress/expected/hs_standby_disallowed.out
src/test/regress/sql/hs_standby_allowed.sql

index 1abe5f6fe949e955035539d839a88b4d9f707575..c26c9822f63555c2ad4bf3b9b40b8440ab271fcb 100644 (file)
@@ -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 
 -------------
index e7f4835092fd131c86e15b3ef71173f46288687e..bc117413ffdb375a0279269276581e22430ec904 100644 (file)
@@ -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;
index 58e2c010d3336943601d5c6db96e50ca48c9c6bc..7fc22148cbc986067c9d9a2d7090b62d2c72cb17 100644 (file)
@@ -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;