summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Sabino Mullane2010-02-18 21:35:26 +0000
committerGreg Sabino Mullane2010-02-18 21:35:26 +0000
commit9fa4b9caf8cc2cb5657e7291dc12464d00c9c8a5 (patch)
treeea6ed4f07e87f9f66b4d0275b9d9a14ee6ad7321
parent381204f795fbd7f43d70c7e6acd4955216404ded (diff)
Put all items one-per-line for relation size actions if --verbose=1
-rwxr-xr-xcheck_postgres.pl5
1 files changed, 4 insertions, 1 deletions
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<Version 2.14.0> (February 11, 2010)