]> granicus.if.org Git - pgbadger/commitdiff
Fix checkpoint regex to match PostgreSQL 10 log messages.
authorejrh <ejrh00@gmail.com>
Wed, 14 Mar 2018 05:47:03 +0000 (18:47 +1300)
committerejrh <ejrh00@gmail.com>
Wed, 14 Mar 2018 05:47:03 +0000 (18:47 +1300)
PostgreSQL 10 renamed 'transaction log' to 'WAL'.

pgbadger

index 3e0bb0e03e2e72b4561e64fb57609d006a7b7e84..c8c4b9b7b3430193ee7525d43c7c3328590facf8 100755 (executable)
--- a/pgbadger
+++ b/pgbadger
@@ -12817,7 +12817,7 @@ sub parse_query
        if (
                ($prefix_vars{'t_loglevel'} eq 'LOG')
                && ($prefix_vars{'t_query'} =~
-/point complete: wrote (\d+) buffers \(([^\)]+)\); (\d+) transaction log file\(s\) added, (\d+) removed, (\d+) recycled; write=([0-9\.]+) s, sync=([0-9\.]+) s, total=([0-9\.]+) s/
+/point complete: wrote (\d+) buffers \(([^\)]+)\); (\d+) (?:transaction log|WAL) file\(s\) added, (\d+) removed, (\d+) recycled; write=([0-9\.]+) s, sync=([0-9\.]+) s, total=([0-9\.]+) s/
                   )
           )
        {