projects
/
check_postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd1cbaf
)
Show bloat when indexes are high too
author
Greg Sabino Mullane
<
[email protected]
>
Thu, 6 Oct 2011 16:39:26 +0000
(12:39 -0400)
committer
Greg Sabino Mullane
<
[email protected]
>
Thu, 6 Oct 2011 16:39:26 +0000
(12:39 -0400)
check_postgres.pl
patch
|
blob
|
blame
|
history
diff --git
a/check_postgres.pl
b/check_postgres.pl
index 2fad37a99b56a7e279f8a2ed76bef90d26dd752a..ccf62a072e8fb9c41175cb764061cb412f949a3c 100755
(executable)
--- a/
check_postgres.pl
+++ b/
check_postgres.pl
@@
-3467,7
+3467,7
@@
FROM (
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";
+ $SQL .= " ORDER BY
(wastedbytes + wastedibytes)
DESC LIMIT $LIMIT";
}
else {
$SQL .= ' ORDER BY wastedbytes DESC';