]> granicus.if.org Git - postgresql/commitdiff
Force synchronous commit in new-ish test_decoding test.
authorAndres Freund <andres@anarazel.de>
Tue, 4 Apr 2017 21:38:00 +0000 (14:38 -0700)
committerAndres Freund <andres@anarazel.de>
Tue, 4 Apr 2017 21:38:00 +0000 (14:38 -0700)
This was missed in a924c327 ff.

contrib/test_decoding/expected/slot.out
contrib/test_decoding/sql/slot.sql

index 6dee1436ccab49228d26afd51341ae7ab3bcee29..9f5f8a9b76622e23ea711692de04a29e597528fe 100644 (file)
@@ -1,3 +1,5 @@
+-- predictability
+SET synchronous_commit = on;
 SELECT 'init' FROM pg_create_logical_replication_slot('regression_slot_p', 'test_decoding');
  ?column? 
 ----------
@@ -31,6 +33,7 @@ SELECT 'init' FROM pg_create_logical_replication_slot('regression_slot_t2', 'tes
 -- here we want to start a new session and wait till old one is gone
 select pg_backend_pid() as oldpid \gset
 \c -
+SET synchronous_commit = on;
 do 'declare c int = 0;
 begin
   while (select count(*) from pg_replication_slots where active_pid = '
index 7ca83feac5dc893aa837307d71a22c78c26959d0..fa9561f54ea842a081bcd4d8e056f0d62c5a7c19 100644 (file)
@@ -1,3 +1,6 @@
+-- predictability
+SET synchronous_commit = on;
+
 SELECT 'init' FROM pg_create_logical_replication_slot('regression_slot_p', 'test_decoding');
 SELECT 'init' FROM pg_create_logical_replication_slot('regression_slot_t', 'test_decoding', true);
 
@@ -9,6 +12,8 @@ SELECT 'init' FROM pg_create_logical_replication_slot('regression_slot_t2', 'tes
 -- here we want to start a new session and wait till old one is gone
 select pg_backend_pid() as oldpid \gset
 \c -
+SET synchronous_commit = on;
+
 do 'declare c int = 0;
 begin
   while (select count(*) from pg_replication_slots where active_pid = '