From: Greg Sabino Mullane Date: Thu, 30 Oct 2014 21:09:10 +0000 (-0400) Subject: Thanks a lot, Postgres. Now featuring whitespace in psql output that has never been... X-Git-Tag: 2.22.0~20 X-Git-Url: http://git.postgresql.org/gitweb/-?a=commitdiff_plain;h=c1122b675ae1e6b92422599b38aa52c055ffff3b;p=check_postgres.git Thanks a lot, Postgres. Now featuring whitespace in psql output that has never been there before. --- diff --git a/check_postgres.pl b/check_postgres.pl index a48e36fba..634fffefb 100755 --- a/check_postgres.pl +++ b/check_postgres.pl @@ -2459,7 +2459,7 @@ sub run_command { $lnum++; next; } - if ($line =~ /^([\?\w]+)\s+\| (.*)/) { + if ($line =~ /^ ?([\?\w]+)\s+\| (.*)/) { $stuff[$lnum]{$1} = $2; $lastval = $1; } @@ -2488,7 +2488,7 @@ sub run_command { warn "OS: $^O\n"; warn "Action: $action\n"; warn "Calling line: $cline\n"; - warn "Output: $line\n"; + warn "Output: >>$line<<\n"; $args =~ s/ -c (.+)/ -c "$1"/s; warn "Command: $PSQL $args\n"; ## Next to last thing is to see if we can grab the PG version