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:
0acbefe
)
Loosen up txn_time regex a little
author
Greg Sabino Mullane
<
[email protected]
>
Fri, 3 Oct 2008 14:53:44 +0000
(10:53 -0400)
committer
Greg Sabino Mullane
<
[email protected]
>
Fri, 3 Oct 2008 14:53:44 +0000
(10:53 -0400)
check_postgres.pl
patch
|
blob
|
blame
|
history
diff --git
a/check_postgres.pl
b/check_postgres.pl
index 88f382cbeabd07876f9b6df9101363dedb44db4e..8a03c1f2f1db4f2f87f1958e73fb62d32d6d4708 100755
(executable)
--- a/
check_postgres.pl
+++ b/
check_postgres.pl
@@
-2890,7
+2890,7
@@
sub check_txn_time {
$SQL = q{SELECT datname, max(COALESCE(ROUND(EXTRACT(epoch FROM now()-xact_start)),0)) }.
qq{FROM pg_stat_activity WHERE xact_start IS NOT NULL $USERWHERECLAUSE GROUP BY 1};
- my $info = run_command($SQL, { regex => qr[\s
*.+?\s
+\|\s+\d+], emptyok => 1 } );
+ my $info = run_command($SQL, { regex => qr[\s+\|\s+\d+], emptyok => 1 } );
my $found = 0;
for $db (@{$info->{db}}) {