summaryrefslogtreecommitdiff
path: root/check_postgres.pl
diff options
context:
space:
mode:
authorGreg Sabino Mullane2009-08-27 22:19:18 +0000
committerGreg Sabino Mullane2009-08-27 22:19:18 +0000
commit8adc582a5a1c731997a34e8e661f67997f713597 (patch)
treef30dd591cc0f5cd5f1f84b0e3eac91b0602ae9a2 /check_postgres.pl
parentbdcaaeb4f5de933cb3d89f98a0b09b55e8fb8ded (diff)
same_schema --exclude should skip triggers too.
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}