From: Greg Sabino Mullane Date: Thu, 18 Feb 2010 21:35:26 +0000 (-0500) Subject: Put all items one-per-line for relation size actions if --verbose=1 X-Git-Tag: 2.14.2~1 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=9fa4b9caf8cc2cb5657e7291dc12464d00c9c8a5;p=check_postgres.git Put all items one-per-line for relation size actions if --verbose=1 --- diff --git a/check_postgres.pl b/check_postgres.pl index 2edfb410b..0aac11a9d 100755 --- a/check_postgres.pl +++ b/check_postgres.pl @@ -3327,7 +3327,9 @@ sub check_relation_size { SLURP: while ($db->{slurp} =~ /(\d+) \| (\d+ \w+)\s+\| (\w)\s*\| (\S+)\s+\| (\S+)/gsm) { my ($size,$psize,$kind,$name,$schema) = ($1,$2,$3,$4,$5); next SLURP if skip_item($name, $schema); - $db->{perf} .= sprintf " %s$name=$size", $kind eq 'r' ? "$schema." : ''; + $db->{perf} .= sprintf "%s%s$name=$size", + $VERBOSE==1 ? "\n" : '', + $kind eq 'r' ? "$schema." : ''; ($max=$size, $pmax=$psize, $kmax=$kind, $nmax=$name, $smax=$schema) if $size > $max; } if ($max < 0) { @@ -8078,6 +8080,7 @@ Items not specifically attributed are by Greg Sabino Mullane. Change the error string for the logfile action for easier exclusion by programs like tail_n_mail Change autovac_freeze default warn/critical back to 90%/95% (Robert Treat) + Put all items one-per-line for relation size actions if --verbose=1 =item B (February 11, 2010)