From: Jon Nelson Date: Thu, 27 Oct 2016 15:41:23 +0000 (-0500) Subject: add left open parentheses to the "stop" chars of regex_prefix_dbclient X-Git-Tag: v9.1~20^2~1^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2d56b4adfb1c2a8bb130234e6627b5f93d2db40c;p=pgbadger add left open parentheses to the "stop" chars of regex_prefix_dbclient to handle the postgresql client string format that includes source port --- diff --git a/pgbadger b/pgbadger index 89eb134..2dc0c31 100644 --- a/pgbadger +++ b/pgbadger @@ -786,7 +786,7 @@ if ($error_only && $disable_error) { # Set default search pattern for database, user name, application name and host in log_line_prefix my $regex_prefix_dbname = qr/(?:db|database)=([^,]*)/; my $regex_prefix_dbuser = qr/(?:user|usr)=([^,]*)/; -my $regex_prefix_dbclient = qr/(?:client|remote|ip|host)=([^,]*)/; +my $regex_prefix_dbclient = qr/(?:client|remote|ip|host)=([^,\(]*)/; my $regex_prefix_dbappname = qr/(?:app|application)=([^,]*)/; # Set pattern to look for query type