diff options
author | Nicolas Thauvin | 2011-06-27 15:26:47 +0000 |
---|---|---|
committer | Guillaume Lelarge | 2011-06-27 15:26:47 +0000 |
commit | 3958c80e5a06d15c0ed1b98122a6519b79250f3c (patch) | |
tree | 3c76d61b9d3942c1e1941bc7092a80388f4d12eb /check_postgres.pl | |
parent | b91182610a046ce657a93f539f3b8e1988a006e3 (diff) |
Fix ORDER BY in the last vacuum/analyze action
Before this patch, the "ORDER BY" was on the relname column. This fixes it to
get an ORDER BY on the last time column, which is more interesting
(especially when you have a perflimit).
Diffstat (limited to 'check_postgres.pl')
-rwxr-xr-x | check_postgres.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/check_postgres.pl b/check_postgres.pl index 0294eecf3..0bc1ac254 100755 --- a/check_postgres.pl +++ b/check_postgres.pl @@ -4414,7 +4414,7 @@ FROM (SELECT nspname, relname, $criteria AS v ORDER BY 3) AS foo }; if ($opt{perflimit}) { - $SQL .= ' ORDER BY 3 DESC'; + $SQL .= ' ORDER BY 4 DESC'; } if ($USERWHERECLAUSE) { |