Let's make the triggerkick triggers always: this should solve one of the makedelta...
authorGreg Sabino Mullane <greg@endpoint.com>
Tue, 11 Dec 2012 05:44:42 +0000 (00:44 -0500)
committerGreg Sabino Mullane <greg@endpoint.com>
Tue, 11 Dec 2012 05:44:42 +0000 (00:44 -0500)
bucardo.schema

index 5d66f173bec36ddfbcae7366c77d29848ca4789d..d945a1a0659720b3a1a5ef275151c8953bf89283 100644 (file)
@@ -2388,6 +2388,13 @@ SELECT 'Fixme'::TEXT;
                     };
                 }
                 $run_sql->($SQL,$dbh);
+
+                ## We want these to always fire, even in replica mode!
+                if ($dbh->{pg_server_version} >= 80300) {
+                    $SQL = qq{ALTER TABLE $safeschema.$safetable ENABLE ALWAYS TRIGGER "$kickfunc"};
+                                       $run_sql->($SQL,$dbh);
+                }
+
             }
         } ## end each TABLE
     }     ## end each SCHEMA