From: Greg Sabino Mullane Date: Tue, 11 Dec 2012 05:44:42 +0000 (-0500) Subject: Let's make the triggerkick triggers always: this should solve one of the makedelta... X-Git-Tag: 4.99.7~53 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=2175f4bc822379c377d1c2efdf509b27c0bf15e8;p=bucardo.git Let's make the triggerkick triggers always: this should solve one of the makedelta issues. --- diff --git a/bucardo.schema b/bucardo.schema index 5d66f173b..d945a1a06 100644 --- a/bucardo.schema +++ b/bucardo.schema @@ -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