Added postgres 9 support (check_pg_waiting_queries.pl)