summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcheck_postgres.pl2
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) {