Take into account different databases for bloat check. Patch by Mark Kirkwood.
authorGreg Sabino Mullane <greg@endpoint.com>
Wed, 3 Jun 2009 01:32:44 +0000 (21:32 -0400)
committerGreg Sabino Mullane <greg@endpoint.com>
Wed, 3 Jun 2009 01:32:44 +0000 (21:32 -0400)
check_postgres.pl

index 3725c4374904cbb4f3131765f967d014667e1ca7..84c178dcfe23bf57e28c50c88342d8de1e030281 100755 (executable)
@@ -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)