Remove default value from sync.isolation_level, so we can respect the global one...
authorGreg Sabino Mullane <greg@endpoint.com>
Sat, 2 May 2015 01:23:40 +0000 (21:23 -0400)
committerGreg Sabino Mullane <greg@endpoint.com>
Sat, 2 May 2015 01:23:40 +0000 (21:23 -0400)
bucardo
bucardo.schema

diff --git a/bucardo b/bucardo
index 6a3858f2e54a2e1cb68bfa760c6bc9c46e9235fe..fbdb65a3fa2447e86f3d44782a38f7d747e4edee 100755 (executable)
--- a/bucardo
+++ b/bucardo
@@ -7822,6 +7822,7 @@ sub upgrade {
     my @altered_columns = (
         ['bucardo', 'goat', 'rebuild_index',     'BOOL2SMALLINT1'],
         ['bucardo', 'goat', 'schemaname',        'NO DEFAULT'],
+        ['bucardo', 'sync', 'isolation_level',   'NO DEFAULT'],
         ['bucardo', 'sync', 'rebuild_index',     'BOOL2SMALLINT1'],
         ['bucardo', 'sync', 'standard_conflict', 'RENAME conflict_strategy'],
         ['bucardo', 'sync', 'ping',              'RENAME autokick'],
index f1b1e9ab6a1a6d992a405384331f2640fd4c61a8..588e7d3b6873273a74e3c86784e719636bb4ba30 100644 (file)
@@ -421,7 +421,7 @@ CREATE TABLE bucardo.sync (
   onetimecopy        SMALLINT    NOT NULL DEFAULT 0,
   lifetime           INTERVAL        NULL,                   -- force controller and kids to restart
   maxkicks           INTEGER     NOT NULL DEFAULT 0,         -- force controller and kids to restart
-  isolation_level    TEXT            NULL DEFAULT 'repeatable read',
+  isolation_level    TEXT            NULL,
   cdate              TIMESTAMPTZ NOT NULL DEFAULT now()
 );
 COMMENT ON TABLE bucardo.sync IS $$Defines a single replication event from a herd to one or more target databases$$;