From: Darold Gilles Date: Fri, 12 Apr 2013 14:51:12 +0000 (+0200) Subject: Fix unmatched ) in regex when using %s in prefix. X-Git-Tag: v3.3~12 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2eb918ad611f366513058b8a8930dad7790fa130;p=pgbadger Fix unmatched ) in regex when using %s in prefix. --- diff --git a/pgbadger b/pgbadger index 0b795c0..44494a1 100755 --- a/pgbadger +++ b/pgbadger @@ -5745,7 +5745,7 @@ sub build_log_line_prefix_regex '%t' => [('t_timestamp', '(\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2})(?: [A-Z\d]{3,6})?')], # timestamp without milliseconds '%m' => [('t_mtimestamp', '(\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2})\.\d+(?: [A-Z\d]{3,6})?')], # timestamp with milliseconds '%l' => [('t_session_line', '(\d+)')], # session line number - '%s' => [('t_session_timestamp', '(\d{4}-\d{2}-\d{2} \d{2}):\d{2}:\d{2})(?: [A-Z\d]{3,6})?')], # session start timestamp + '%s' => [('t_session_timestamp', '(\d{4}-\d{2}-\d{2} \d{2}):\d{2}:\d{2}(?: [A-Z\d]{3,6})?')], # session start timestamp '%c' => [('t_session_id', '([0-9a-f\.]*)')], # session ID '%v' => [('t_virtual_xid', '([0-9a-f\.\/]*)')], # virtual transaction ID '%x' => [('t_xid', '([0-9a-f\.\/]*)')], # transaction ID