diff --git a/config/munin/pg_newsblur_connections b/config/munin/pg_newsblur_connections index b7c42b641..baa9ffc9d 100755 --- a/config/munin/pg_newsblur_connections +++ b/config/munin/pg_newsblur_connections @@ -152,7 +152,7 @@ else { } $sql = "select count(*) from pg_stat_activity "; - $sql .= " where datname = ? and current_query like '%'"; + $sql .= " where datname = ? and state = 'idle'"; print "# $sql\n" if $debug; $sth = $dbh->prepare($sql); $sth->execute($dbname);