From: Greg Sabino Mullane Date: Wed, 3 Jun 2009 01:32:44 +0000 (-0400) Subject: Take into account different databases for bloat check. Patch by Mark Kirkwood. X-Git-Tag: 2.9.1~24 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=4d3beba7a166497688fe557006691636bc49d6c0;p=check_postgres.git Take into account different databases for bloat check. Patch by Mark Kirkwood. --- 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)