From 358a4233a9fdef37377dd429568e7435858cb6df Mon Sep 17 00:00:00 2001 From: Greg Sabino Mullane Date: Tue, 2 Mar 2010 11:08:52 -0500 Subject: Don't apply a LIMIT when using --exclude on the bloat action (Marti Raudsepp) --- check_postgres.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'check_postgres.pl') diff --git a/check_postgres.pl b/check_postgres.pl index 2729ce6a7..f8b9b5428 100755 --- a/check_postgres.pl +++ b/check_postgres.pl @@ -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 + 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) -- cgit v1.2.3