adjusting check_txn_idle filter by state_change column
authorSebastian Webber <[email protected]>
Fri, 13 Mar 2015 13:11:08 +0000 (10:11 -0300)
committerChristoph Berg <[email protected]>
Tue, 7 Jun 2016 21:15:00 +0000 (23:15 +0200)
check_postgres.pl

index 017bed16a3400df3ba52fb4637fbd4ed17515821..d42b5abf1b21ba940b2902f01bcbba9077cc6820 100644 (file)
@@ -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" ] } );