summaryrefslogtreecommitdiff
path: root/check_postgres.pl
diff options
context:
space:
mode:
authorGreg Sabino Mullane2014-10-30 21:09:10 +0000
committerGreg Sabino Mullane2014-10-30 21:09:10 +0000
commitc1122b675ae1e6b92422599b38aa52c055ffff3b (patch)
treea946388efb54b1715afa86d634b5ec28c4c54a7e /check_postgres.pl
parent900b0887df0f7367b33b0576102df1d8a937cef4 (diff)
Thanks a lot, Postgres. Now featuring whitespace in psql output that has never been there before.
Diffstat (limited to 'check_postgres.pl')
-rwxr-xr-xcheck_postgres.pl4
1 files changed, 2 insertions, 2 deletions
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