projects
/
check_postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
| inline |
side by side
(parent:
596c506
)
adjusting check_txn_idle filter by state_change column
author
Sebastian Webber
<
[email protected]
>
Fri, 13 Mar 2015 13:11:08 +0000
(10:11 -0300)
committer
Christoph Berg
<
[email protected]
>
Tue, 7 Jun 2016 21:15:00 +0000
(23:15 +0200)
check_postgres.pl
|
blob
|
blame
|
history
diff --git
a/check_postgres.pl
b/check_postgres.pl
index 017bed16a3400df3ba52fb4637fbd4ed17515821..d42b5abf1b21ba940b2902f01bcbba9077cc6820 100644
(file)
--- a/
check_postgres.pl
+++ b/
check_postgres.pl
@@
-8019,6
+8019,7
@@
sub check_txn_idle {
$SQL3 =~ s/current_query NOT LIKE '<IDLE>%'/(state NOT LIKE 'idle%' OR state IS NULL)/; # query_time
$SQL3 =~ s/current_query/query/g;
$SQL3 =~ s/'' AS state/state AS state/;
+ $SQL3 =~ s/query_start/state_change/g;
my $info = run_command($SQL, { emptyok => 1 , version => [ "<8.3 $SQL2", ">9.1 $SQL3" ] } );