Don't apply a LIMIT when using --exclude on the bloat action (Marti Raudsepp)
authorGreg Sabino Mullane <greg@endoint.com>
Tue, 2 Mar 2010 16:08:52 +0000 (11:08 -0500)
committerGreg Sabino Mullane <greg@endpoint.com>
Tue, 2 Mar 2010 16:08:52 +0000 (11:08 -0500)
check_postgres.pl

index 2729ce6a7efee8604323ef4d8e77aeceb4e7ec19..f8b9b54284a7f9e21dc1d0f0a6046cb83095ffb6 100755 (executable)
@@ -2675,7 +2675,7 @@ FROM (
 ) AS sml
 };
 
-       if (! defined $opt{include}) {
+       if (! defined $opt{include} and ! defined $opt{exclude}) {
                $SQL .= " WHERE sml.relpages - otta > $MINPAGES OR ipages - iotta > $MINIPAGES";
                $SQL .= " ORDER BY wastedbytes DESC LIMIT $LIMIT";
        }
@@ -8148,6 +8148,7 @@ Items not specifically attributed are by Greg Sabino Mullane.
 
 =item B<Version 2.15.0>
 
+  Don't apply a LIMIT when using --exclude on the bloat action (Marti Raudsepp)
   Change the output of query_time to show pid,user,port, and address (Giles Westwood)
   Fix to show database properly when using slony_status (Guillaume Lelarge)