Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: darold/pgbadger
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v11.8
Choose a base ref
...
head repository: darold/pgbadger
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref

Commits on Apr 21, 2022

  1. Copy the full SHA
    9b9019b View commit details

Commits on Apr 22, 2022

  1. Copy the full SHA
    c47fa3c View commit details
  2. Merge pull request #731 from credativ/show_error_as_text_fix

    Fix text-based error/events reporting
    darold authored Apr 22, 2022
    Copy the full SHA
    81a16f8 View commit details

Commits on May 11, 2022

  1. Copy the full SHA
    40802fc View commit details

Commits on May 12, 2022

  1. Copy the full SHA
    c3ad6ab View commit details

Commits on May 19, 2022

  1. Copy the full SHA
    ee820cd View commit details
  2. Copy the full SHA
    b27e593 View commit details

Commits on Jul 24, 2022

  1. Copy the full SHA
    77303ec View commit details
  2. Apply --exclude-query and --include-query to bind/parse traces. Thank…

    …s to Alec Lazarescu for the report.
    darold committed Jul 24, 2022
    Copy the full SHA
    e4da5f2 View commit details
  3. Use POST method to send auto_explain plan to explain.depesz.com to av…

    …oid GET length parameter limit. Thanks to hvisage for the report.
    darold committed Jul 24, 2022
    Copy the full SHA
    332a155 View commit details
  4. Allow use of --explain-url with previous commit and restore the limit…

    …ation to explain text format.
    darold committed Jul 24, 2022
    Copy the full SHA
    942f491 View commit details
  5. Allow use of regexp for --exclude-app and --exclude-client. Thanks to…

    … rdnkrkmz for the feature request.
    darold committed Jul 24, 2022
    Copy the full SHA
    5c47a7f View commit details
  6. Allow half hour in --log-timezone and --timezone, value can be an int…

    …eger,
    
    ex: 2 or a float, ex: 2.5. Thanks to Mujjamil-K for the feature request.
    darold committed Jul 24, 2022
    Copy the full SHA
    8e063ec View commit details

Commits on Jul 28, 2022

  1. Lot of pgbadger documentation fixes. Thanks to Elena Indrupskay from …

    …Postgres Pro for the patch.
    darold committed Jul 28, 2022
    Copy the full SHA
    9ba6b1e View commit details
  2. Remove option -n | --nohighlight which is no more uses since upgrade …

    …to pgFormatter 4. Thanks to Elena Indrupskaya for the report.
    darold committed Jul 28, 2022
    Copy the full SHA
    c5ea121 View commit details

Commits on Aug 3, 2022

  1. Typo fixes

    dgilmanAIDENTIFIED committed Aug 3, 2022
    Copy the full SHA
    841fafb View commit details
  2. Merge pull request #744 from dgilmanAIDENTIFIED/master

    Typo fixes
    darold authored Aug 3, 2022
    Copy the full SHA
    99fcbc3 View commit details

Commits on Aug 12, 2022

  1. fix documentation about pgBadger return codes and also some wrong ret…

    …urn code at some places. Thanks to Jaume Sabater for the report.
    darold committed Aug 12, 2022
    Copy the full SHA
    2a99d51 View commit details

Commits on Sep 10, 2022

  1. Drastically improve pgbadger performances for bind parameters

    replacemeent that could make pgbadger run infinitely when there was
    hundred of parameters. Thanks to Monty Mobile for the report.
    darold committed Sep 10, 2022
    Copy the full SHA
    3efe569 View commit details

Commits on Sep 11, 2022

  1. Cosmetic changes in code.

    darold committed Sep 11, 2022
    Copy the full SHA
    e8ea29b View commit details

Commits on Sep 12, 2022

  1. Copy the full SHA
    65af3e3 View commit details
  2. Fix pgbouncer start parsing debug message when input is stdin. Thanks…

    … to aleszeleny for the report.
    darold committed Sep 12, 2022
    Copy the full SHA
    186679d View commit details

Commits on Sep 13, 2022

  1. Fix monthly reports that was failing on "log file ... must exists". T…

    …hanks to Jaume Sabater for the report.
    darold committed Sep 13, 2022
    Copy the full SHA
    b765900 View commit details
  2. Remove autovacuum and autoanalyze from session count, even if technic…

    …ally they use a session. In these cases the session is seen always open by pgbadger which is not the case. Thanks to vitalca for the report.
    darold committed Sep 13, 2022
    Copy the full SHA
    7b8b28a View commit details
  3. Copy the full SHA
    f79ea68 View commit details
  4. Revert "Remove autovacuum and autoanalyze from session count, even if…

    … technically they use a session. In these cases the session is seen always open by pgbadger which is not the case. Thanks to vitalca for the report."
    
    This reverts commit 7b8b28a.
    darold committed Sep 13, 2022
    Copy the full SHA
    7d1356a View commit details
  5. Copy the full SHA
    edaa8f9 View commit details

Commits on Sep 27, 2022

  1. fix typo: 2919 to 2019

    shin1103 committed Sep 27, 2022
    Copy the full SHA
    900f676 View commit details
  2. Merge pull request #755 from shin1103/master

    fix typo: 2919 to 2019
    darold authored Sep 27, 2022
    Copy the full SHA
    eebcafc View commit details

Commits on Nov 2, 2022

  1. Copy the full SHA
    df4da14 View commit details

Commits on Nov 19, 2022

  1. Fix unused option --outdir in report generation. Thanks to Frederic G…

    …uiet for the report.
    darold committed Nov 19, 2022
    Copy the full SHA
    3212e28 View commit details
  2. Copy the full SHA
    60cb657 View commit details

Commits on Nov 27, 2022

  1. parse CloudNativePG generated logs

    codrut.panea committed Nov 27, 2022
    Copy the full SHA
    5aa95bc View commit details
  2. Merge pull request #761 from cod-r/cloudnativepg

    parse CloudNativePG generated logs
    darold authored Nov 27, 2022
    Copy the full SHA
    95c4aca View commit details

Commits on Dec 5, 2022

  1. Copy the full SHA
    5c96f4c View commit details
  2. Copy the full SHA
    8f2862e View commit details

Commits on Feb 15, 2023

  1. Copy the full SHA
    4b95834 View commit details

Commits on Mar 8, 2023

  1. Fix failure to normalize query with ::tsrange. Thanks to Philippe Gri…

    …boval for the report.
    darold committed Mar 8, 2023
    Copy the full SHA
    b163e52 View commit details
  2. Copy the full SHA
    f9658bf View commit details

Commits on Mar 20, 2023

  1. Update copyright year.

    darold committed Mar 20, 2023
    Copy the full SHA
    b9d003b View commit details
  2. Copy the full SHA
    9001cf2 View commit details

Commits on Mar 21, 2023

  1. Copy the full SHA
    0d91190 View commit details

Commits on Apr 12, 2023

  1. Copy the full SHA
    282b48d View commit details
  2. Merge pull request #772 from der-eismann/default-explain-https

    Use https for explain URL by default
    darold authored Apr 12, 2023
    Copy the full SHA
    47acd7a View commit details

Commits on Apr 29, 2023

  1. Copy the full SHA
    0e5c7d5 View commit details
  2. Replace calls to OSIX::strftime("%s", ....) by a call to localtime fo…

    …r Windows port. Thanks to Bertrand Bourgier for the patch.
    darold committed Apr 29, 2023
    Copy the full SHA
    cf9f511 View commit details

Commits on May 1, 2023

  1. Fix output extension when destination directory contain a character t…

    …hat need to be escaped in Perl Regexp. Thanks to Bertrand Bourgier for the patch.
    darold committed May 1, 2023
    Copy the full SHA
    c658e00 View commit details
  2. Fix cleanup output directory removed by commit 0e5c7d5 when HTML outp…

    …ut dir is set. Thanks to Bertrand Bourgier for the report.
    darold committed May 1, 2023
    Copy the full SHA
    a1bb778 View commit details

Commits on May 6, 2023

  1. FIX for Issue #776

    bbourgier authored May 6, 2023
    Copy the full SHA
    a52a22d View commit details

Commits on May 24, 2023

  1. Merge pull request #778 from bbourgier/issue_776_fix

    FIX for Issue #776
    darold authored May 24, 2023
    Copy the full SHA
    9b7b79e View commit details
210 changes: 209 additions & 1 deletion ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,211 @@
2024-12-08 - v13.0

This is a major release of pgBadger that fixes issues reported by
users since last release and adds some new features:

* Add two new option to be able to redefined inbound of query and session
histogram.
--histogram-query VAL : use custom inbound for query times histogram.
Default inbound in milliseconds:
0,1,5,10,25,50,100,500,1000,10000
--histogram-session VAL : use custom inbound for session times histogram.
Default inbound in milliseconds:
0,500,1000,30000,60000,600000,1800000,3600000,28800000
Thanks to JosefMachytkaNetApp for the feature request.
* Add support of auto_explain plan for csv and json log formats. Thanks
to zxwsbg and to Alexander Rumyantsev for the report.
* Add three LOG message that was not reported as events: unexpected EOF,
incomplete startup packet and detected deadlock while waiting for. Thanks
to dottle for the report.

Backward compatibility issues:

- Change the way LOG level events reported in the Events reports are
stored. Some of them was still reported and counted as errors instead
as LOG level entries. The fix is to stored and report them as EVENTLOG
to differentiate them from queries. This change introduce a backward
compatibility break when pgbadger is used in incremental mode. You will
just have the double behavior during the week of the upgrade.
Thanks to Matti Linnanvuori for the report.

Bug fixes:

- Fix non reported queries generating the most cancellation due to statement_timeout.
- Update regression tests
- Fix formatting of explain plan when extracted from csv log format.
- Fix jsonlog missing autovacuum data reports:
Average Autovacuum Duration, Tuples removed per table
and vacuums by hour in autovacuum activity report.
Thanks to Ales Zeleny for the patch.
- Fix orphan line not associated to the time consuming bind queries.
Thanks to Henrietta Dombrovskaya for the report.
Fix use of uninitialized value in pattern match. Thanks to Junior Dias
for the patch.
- Apply option --csv-separator to raw export to CSV. Default separator
is semicolon (;). Thanks to Henrietta Dombrovskaya for the feature
request.
- Raw csv output: do not add double quote to parameters and application
name if they are empty.
- Add double quotes when queries have a semi colon in raw csv output.
Thanks to Henrietta Dombrovskaya for the report.

2023-12-25 - v12.4

This is a maintenance release of pgBadger that fixes issues reported by
users since last release.

- Fix pgbouncer report with version 1.21. Thanks to Ales Zeleny for the patch.
- Prevent parallelism perl file to be higher than the number of files. Thanks
to maliangzhu for the report.
- Fix regression test broken since v12.3. Thanks to ieshin for the report.
- Fix cases where LOG entries where counted as ERROR log level entries. Thanks
to Matti Linnanvuori for the report.

2023-11-27 - v12.3

This is a maintenance release of pgBadger that fixes issues reported by
users since last release. It also adds some new features:

* Add option --include-pid to only report events related to a session
pid (%p). Can be used multiple time. Thanks to Henrietta Dombrovskaya
for the feature request.
* Add option --include-session to only report events related to the
session id (%c). Can be used multiple time. Thanks to Henrietta Dombrovskaya
for the feature request.
* Add new option --dump-raw-csv to only parse the log and dump the information
into CSV format. No further processing is done, no report is generated.
Thanks to Henrietta Dombrovskaya for the feature request.

Here is the complete list of changes and acknowledgments:

- Update pgFormatter to version 5.5
- Fix end date of parsing with jsonlog format. Thanks to jw1u1 for the report.
- Fix typo in "Sessions per application". Thanks to fairyfar for the patch.
- Fix "INSERT/UPDATE/DELETE Traffic" chart bug. Thanks to fairyfar for the
patch.
- Fix parsing of orphan lines with bind queries. Thanks to youxq for the
report.
- Fix Analyze per table report with new PG versions. Thanks to Jean-Christophe
Arnu for the patch.
- Fix syslog entry parser when the syslog timestamp contains milliseconds.
Thanks to Pavel Rabel for the report.

2023-08-20 - v12.2

This is a maintenance release of pgBadger that fixes issues reported by
users since last release. It also adds two new features:

* Add support for max, avg, min autovacuum duration. Thanks to Francisco
Reinolds for the patch.
* Add support for pgbouncer's average waiting time. Thanks to Francisco
Reinolds for the patch.

Here is the complete list of changes and acknowledgments:

- Fix broken HTML output when application name contains <...>. Thanks to
Fabio Geiss for the report.
- Fix incorrect association of orphan lines when a filter on database was
applied. Thanks to jcasanov for the report.
- Fix logplex prefix parsing.
- Fix logplex orphan lines detection.
- Fix `autovacuum`'s `system usage: CPU: ...` line parsing. Thanks to
Francisco Reinolds for the patch.
- Avoid prepending output directory if output is stdout.
- Standardise Average Query Duration label. Thanks to Francisco Reinolds
for the patch
- Update documentation for new pgbadger options. Thanks to Francisco Reinolds
for the patch.
- Fix case where parsing was not aborted when no file handle can be opened.
Thanks to vp for the report.
- Fix help by adding %p/%t mandatory placeholder log information. Thanks to
Christophe Courtois for the patch.
- Fix --retention parameter. Thanks to Bertrand Bourgier for the patch.
- Fix cleanup output directory removed by commit 0e5c7d5 when HTML output dir
is set. Thanks to Bertrand Bourgier for the report.
- Fix output extension when destination directory contain a character that
need to be escaped in regexp. Thanks to Bertrand Bourgier for the patch.
- Replace calls to POSIX::strftime("%s", ....) by a call to localtime for
Windows port. Thanks to Bertrand Bourgier for the patch.
- Fix html output dir cleanup. Thanks to Bertrand Bourgier for the patch.
- Use https for explain URL by default. Thanks to Philipp Trulson for the
patch.

2023-03-20 - v12.1

This is a maintenance release of pgBadger that fixes issues reported by users
since past six months.

Here is the complete list of changes and acknowledgments:

- Fix parsing of multiline parameters. Thanks to Bekir Niyaz for the report.
- Fix failure to normalize query with ::tsrange. Thanks to Philippe Griboval
for the report.
- Add logical decoding consistent point and start for slot log entries to
the events report.
- Handle other ns + timezone format in timestamp. Thanks to Ronan Dunklau
for the report.
- Fix detection of %m when notation with T is used. Thanks to Ronan Dunklau
for the report.
- Add parsing of CloudNativePG generated logs. Thanks to codrut panea for
the patch.
- Fix unused option --outdir in report generation. Thanks to Frederic Guiet
for the report.
- Update README with last documentation changes. Thanks to Manisankar for
the report.
- Fix a typo in pgbadger examples. Thanks to Shinichi Hashiba for the patch.

2022-09-13 - v12.0

This major release of pgBadger fixes some issues reported by users since
past five months. As usual there is also new features and improvements:

* Remove support to Tsung output.
* Improve pgbadger performances when there are hundred of bind parameters
to replace.
* Remove option -n | --nohighlight which is no more used since upgrade to
pgFormatter 4.
* Use POST method to send auto_explain plan to explain.depesz.com to avoid
GET length parameter limit.
* Apply --exclude-query and --include-query to bind/parse traces.
* Add link to pgBadger report examples to documentation.

Here is the complete list of changes and acknowledgments:

- Fix monthly reports that was failing on "log file ... must exists". Thanks
to Jaume Sabater for the report.
- Fix pgbouncer start parsing debug message when input is stdin. Thanks to
aleszeleny for the report.
- Remove support to Tsung output.
- Drastically improve pgbadger performances for bind parameters
replacement that could make pgbadger run infinitely when there was
hundred of parameters. Thanks to Monty Mobile for the report.
- Fix documentation about pgBadger return codes and also some wrong return
code at some places. Thanks to Jaume Sabater for the report.
- Fix several typo. Thanks to David Gilman for the patch.
- Remove option -n | --nohighlight which is no more used since upgrade to
pgFormatter 4. Thanks to Elena Indrupskaya for the report.
- Lot of pgbadger documentation fixes. Thanks to Elena Indrupskay from
Postgres Pro for the patch.
- Allow half hour in --log-timezone and --timezone, value can be an integer,
ex: 2 or a float, ex: 2.5. Thanks to Mujjamil-K for the feature request.
- Allow use of regexp for --exclude-app and --exclude-client. Thanks to
rdnkrkmz for the feature request.
- Allow use of --explain-url with previous commit and restore the limitation
to explain text format.
- Use POST method to send auto_explain plan to explain.depesz.com to avoid
GET length parameter limit. Thanks to hvisage for the report.
- Apply --exclude-query and --include-query to bind/parse traces. Thanks to
Alec Lazarescu for the report.
- Fix parsing of autovacuum stats from RDS logs. Thanks to David Gilman for
the report.
- Fix passing of log format when parsing remote log. Thanks to spookypeanut
the report.
- Add link to pgBadger report examples to documentation.
- Fix Session per user reports. Thanks to vitalca for the report.
- Fix jsonlog parsing from PG15 ouput
- Fix text-based error/events reporting. Thanks to Michael Banck for the patch
- Fix regexp typo in normalize_error(). Thanks to Michael Banck for the patch.

2022-04-08 - v11.8

This release of pgBadger fix some issues reported by users since past
@@ -1205,7 +1413,7 @@ New pgbouncer reports are:

* Request Throughput
* Bytes I/O Throughput
* Queries Average duration
* Average Query Duration
* Simultaneous sessions
* Histogram of sessions times
* Sessions per database
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2012-2022, Gilles Darold
Copyright (c) 2012-2025, Gilles Darold

Permission to use, copy, modify, and distribute this software and its
documentation for any purpose, without fee, and without a written agreement
2 changes: 1 addition & 1 deletion META.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: pgBadger
version: 11.8
version: 13.0
version_from: pgbadger
installdirs: site
recommends:
Loading