diff options
author | Greg Sabino Mullane | 2009-07-22 17:12:31 +0000 |
---|---|---|
committer | Greg Sabino Mullane | 2009-07-22 17:12:31 +0000 |
commit | 5850842c0ab1a9f24aa3ca614fc4a6f3d6eaf1bb (patch) | |
tree | b0151d87f549f7f8f738ee0a846f373ce336fa84 /check_postgres.pl | |
parent | 790bf5da4d9929c6e86068dd3e8d7a7fc184fe7f (diff) |
No limits on amount of bloat if we are doing --include.
Diffstat (limited to 'check_postgres.pl')
-rwxr-xr-x | check_postgres.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/check_postgres.pl b/check_postgres.pl index 9f8137c46..a18caff47 100755 --- a/check_postgres.pl +++ b/check_postgres.pl @@ -2494,13 +2494,13 @@ FROM ( LEFT JOIN pg_index i ON indrelid = cc.oid LEFT JOIN pg_class c2 ON c2.oid = i.indexrelid ) AS sml -WHERE sml.relpages - otta > $MINPAGES OR ipages - iotta > $MINIPAGES -ORDER BY wastedbytes DESC }; if (! defined $opt{include}) { + $SQL .= "WHERE sml.relpages - otta > $MINPAGES OR ipages - iotta > $MINIPAGES"; $SQL .= " LIMIT $LIMIT"; } + $SQL .= "ORDER BY wastedbytes DESC"; my $info = run_command($SQL); |