]> granicus.if.org Git - pgbadger/commitdiff
Fix unmatched ) in regex when using %s in prefix.
authorDarold Gilles <gilles@darold.net>
Fri, 12 Apr 2013 14:51:12 +0000 (16:51 +0200)
committerDarold Gilles <gilles@darold.net>
Fri, 12 Apr 2013 14:51:12 +0000 (16:51 +0200)
pgbadger

index 0b795c046de1bea9edde587842e0fbb64ef7e985..44494a120d29c40ef2c10e9b8a7f6fb4e2755b60 100755 (executable)
--- 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