summaryrefslogtreecommitdiff
path: root/check_postgres.pl
diff options
context:
space:
mode:
Diffstat (limited to 'check_postgres.pl')
-rwxr-xr-xcheck_postgres.pl9
1 files changed, 9 insertions, 0 deletions
diff --git a/check_postgres.pl b/check_postgres.pl
index a49b29fe9..882682831 100755
--- a/check_postgres.pl
+++ b/check_postgres.pl
@@ -5131,6 +5131,11 @@ SQL
next TRIGGER1 if $name =~ /$regex/;
}
}
+
+ for my $exclude (@{$opt{exclude}}) {
+ next TRIGGER1 if $name =~ /$exclude/;
+ }
+
push @{$fail{triggers}{notexist}{1}} => $name;
$failcount++;
}
@@ -5149,6 +5154,10 @@ SQL
next;
}
+ for my $exclude (@{$opt{exclude}}) {
+ next TRIGGER2 if $name =~ /$exclude/;
+ }
+
## Do the triggers call the same function?
if (
$thing{1}{triggers}{$name}{func} ne $thing{2}{triggers}{$name}{func}