From 4d3beba7a166497688fe557006691636bc49d6c0 Mon Sep 17 00:00:00 2001 From: Greg Sabino Mullane Date: Tue, 2 Jun 2009 21:32:44 -0400 Subject: Take into account different databases for bloat check. Patch by Mark Kirkwood. --- check_postgres.pl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'check_postgres.pl') diff --git a/check_postgres.pl b/check_postgres.pl index 3725c4374..84c178dcf 100755 --- a/check_postgres.pl +++ b/check_postgres.pl @@ -2442,7 +2442,7 @@ ORDER BY wastedbytes DESC LIMIT $LIMIT $max = -2 if $max == -1; ## Do the table first if we haven't seen it - if (! $seenit{"$schema.$table"}++) { + if (! $seenit{"$db->{dbname}.schema.$table"}++) { $db->{perf} .= " $schema.$table=$wb"; my $msg = msg('bloat-table', $schema, $table, $tups, $pages, $otta, $bloat, $wb, $ws); my $ok = 1; @@ -7206,6 +7206,10 @@ Items not specifically attributed are by Greg Sabino Mullane. =over 4 +=item B (May 2009) + + Fix for multiple databases with the check_bloat action (Mark Kirkwood) + =item B (May 28, 2009) Added the same_schema action (Greg) -- cgit v1.2.3