Fix the <IDLE>-state in Bug #43.
authorMartin von Oertzen <[email protected]>
Fri, 11 Feb 2011 09:36:21 +0000 (09:36 +0000)
committerMartin von Oertzen <[email protected]>
Fri, 11 Feb 2011 09:36:21 +0000 (09:36 +0000)
check_postgres.pl

index 374be051d1c57abf7cb3832f8b764c2db1f0904f..9b0f139903f1d0df36397425a2166d5e5e553ae7 100755 (executable)
@@ -4936,7 +4936,7 @@ sub check_query_time {
                    msg('queries'),
                    msg('query-time'),
                    'query_start',
-                   q{query_start IS NOT NULL AND current_query <> '<IDLE> in transaction'});
+                   q{query_start IS NOT NULL AND current_query NOT LIKE '<IDLE>%'});
 
     return;