summaryrefslogtreecommitdiff
path: root/check_postgres.pl
diff options
context:
space:
mode:
authorglynastill2015-09-10 09:53:43 +0000
committerglyn2016-06-07 11:13:41 +0000
commit362890ebe8550f63fa48511f84997d4ff6dc94b3 (patch)
tree45b9d6839dea4120c4eb8320a491209d197f784a /check_postgres.pl
parent23fdf93b07c3e96cd626b3adea3420e44fd70d42 (diff)
Fix trigger check in check_same_schema to ignore deferrable unique constraint triggers
These triggers have a name containting the triggers oid which mismatches on logical replicas; so to exclude these just ensure tgconstrindid is zero.
Diffstat (limited to 'check_postgres.pl')
-rwxr-xr-xcheck_postgres.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/check_postgres.pl b/check_postgres.pl
index 4de0d414f..f3767348f 100755
--- a/check_postgres.pl
+++ b/check_postgres.pl
@@ -1102,7 +1102,7 @@ JOIN pg_proc p ON (p.oid = t.tgfoid)
JOIN pg_namespace n3 ON (n3.oid = p.pronamespace)
LEFT JOIN pg_class c2 ON (c2.oid = t.tgconstrrelid)
LEFT JOIN pg_namespace n2 ON (n2.oid = c2.relnamespace)
-WHERE t.tgconstrrelid = 0 AND tgname !~ '^pg_'},
+WHERE t.tgconstrrelid = 0 AND t.tgconstrindid = 0 AND tgname !~ '^pg_'},
},
function => {
SQL => q{