diff options
author | Sebastian Webber | 2015-03-13 13:11:08 +0000 |
---|---|---|
committer | Christoph Berg | 2016-06-07 21:15:00 +0000 |
commit | c09e7840ed82db6274116ce9b83fbdbc72f940c8 (patch) | |
tree | ed27ce0be1861bf3b25c3cd64fa7efcc9d0e93b6 /check_postgres.pl | |
parent | 596c506ed0b784b313cf1aeee7bb2d114c880d9e (diff) |
adjusting check_txn_idle filter by state_change column
Diffstat (limited to 'check_postgres.pl')
-rw-r--r-- | check_postgres.pl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/check_postgres.pl b/check_postgres.pl index 017bed16a..d42b5abf1 100644 --- 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" ] } ); |