summaryrefslogtreecommitdiff
path: root/check_postgres.pl
diff options
context:
space:
mode:
authorGreg Sabino Mullane2009-06-03 01:32:44 +0000
committerGreg Sabino Mullane2009-06-03 01:32:44 +0000
commit4d3beba7a166497688fe557006691636bc49d6c0 (patch)
tree89b70a42739b4d4a25b36095e485bf5d5615b8ce /check_postgres.pl
parent6e6b2cfbcba1aa97e1ae2ee7413988034fab0594 (diff)
Take into account different databases for bloat check. Patch by Mark Kirkwood.
Diffstat (limited to 'check_postgres.pl')
-rwxr-xr-xcheck_postgres.pl6
1 files changed, 5 insertions, 1 deletions
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<Version 2.9.1> (May 2009)
+
+ Fix for multiple databases with the check_bloat action (Mark Kirkwood)
+
=item B<Version 2.9.0> (May 28, 2009)
Added the same_schema action (Greg)