From 7ee9ce1a9aad5dbdef6e3ef98c49f360c34dc15e Mon Sep 17 00:00:00 2001 From: Greg Sabino Mullane Date: Fri, 3 Oct 2008 10:53:44 -0400 Subject: [PATCH] Loosen up txn_time regex a little --- check_postgres.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check_postgres.pl b/check_postgres.pl index 88f382cbe..8a03c1f2f 100755 --- a/check_postgres.pl +++ b/check_postgres.pl @@ -2890,7 +2890,7 @@ sub check_txn_time { $SQL = q{SELECT datname, max(COALESCE(ROUND(EXTRACT(epoch FROM now()-xact_start)),0)) }. qq{FROM pg_stat_activity WHERE xact_start IS NOT NULL $USERWHERECLAUSE GROUP BY 1}; - my $info = run_command($SQL, { regex => qr[\s*.+?\s+\|\s+\d+], emptyok => 1 } ); + my $info = run_command($SQL, { regex => qr[\s+\|\s+\d+], emptyok => 1 } ); my $found = 0; for $db (@{$info->{db}}) { -- 2.39.5