projects
/
bucardo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71a0b45
)
Let's make the triggerkick triggers always: this should solve one of the makedelta...
author
Greg Sabino Mullane
<greg@endpoint.com>
Tue, 11 Dec 2012 05:44:42 +0000
(
00:44
-0500)
committer
Greg Sabino Mullane
<greg@endpoint.com>
Tue, 11 Dec 2012 05:44:42 +0000
(
00:44
-0500)
bucardo.schema
patch
|
blob
|
blame
|
history
diff --git
a/bucardo.schema
b/bucardo.schema
index 5d66f173bec36ddfbcae7366c77d29848ca4789d..d945a1a0659720b3a1a5ef275151c8953bf89283 100644
(file)
--- 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