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:
45e7088
)
Put in a good ORDER BY for txn_wraparound
author
Greg Sabino Mullane
<
[email protected]
>
Fri, 18 Jul 2008 22:05:50 +0000
(18:05 -0400)
committer
Greg Sabino Mullane
<
[email protected]
>
Fri, 18 Jul 2008 22:05:50 +0000
(18:05 -0400)
check_postgres.pl
patch
|
blob
|
blame
|
history
diff --git
a/check_postgres.pl
b/check_postgres.pl
index d25c8cc7e26e0a1b51c8f178c30a26c1ff5c23af..60efe20d456b82975c78a44fb6cc024dcf100b93 100755
(executable)
--- a/
check_postgres.pl
+++ b/
check_postgres.pl
@@
-2958,7
+2958,7
@@
sub check_txn_wraparound {
default_critical => 1_400_000_000,
});
- $SQL = q{SELECT datname, age(datfrozenxid) FROM pg_database WHERE datallowconn is true};
+ $SQL = q{SELECT datname, age(datfrozenxid) FROM pg_database WHERE datallowconn is true
ORDER BY 2 desc, 1
};
my $info = run_command($SQL, { regex => qr[\w+\s+\|\s+\d+] } );
my ($max,$maxmsg) = (0,'?');