summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Sabino Mullane2010-03-08 15:54:57 +0000
committerGreg Sabino Mullane2010-03-08 15:54:57 +0000
commit465dbad5f5543f32390a9a6fe2c54c0863172eb5 (patch)
treedd64fb7df86746cc6fe6e6c3d73f9e558f424a63
parent066744dc0c63415b77030cfd2095a29e9999d669 (diff)
Allow warning items for same_schema to be comma-separated (Guillaume Lelarge)
-rwxr-xr-xcheck_postgres.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/check_postgres.pl b/check_postgres.pl
index 06a3de824..c6522c9b2 100755
--- a/check_postgres.pl
+++ b/check_postgres.pl
@@ -4612,7 +4612,7 @@ sub check_same_schema {
## Check for filtering rules
my %filter;
if (exists $opt{warning} and length $opt{warning}) {
- for my $phrase (split /\s+/ => $opt{warning}) {
+ for my $phrase (split /[\s,]+/ => $opt{warning}) {
for my $type (qw/schema user table view index sequence constraint trigger function perm language owner/) {
if ($phrase =~ /^no${type}s?$/i) {
$filter{"no${type}s"} = 1;
@@ -8250,6 +8250,7 @@ Items not specifically attributed are by Greg Sabino Mullane.
Don't apply a LIMIT when using --exclude on the bloat action (Marti Raudsepp)
Change the output of query_time to show pid,user,port, and address (Giles Westwood)
Fix to show database properly when using slony_status (Guillaume Lelarge)
+ Allow warning items for same_schema to be comma-separated (Guillaume Lelarge)
=item B<Version 2.14.3> (March 1, 2010)