| 1 |
2025-12-29 - v13.2 |
| 2 |
|
| 3 |
This is a maintenance release of pgBadger that fixes issues and applied patches |
| 4 |
reported by users since last release. |
| 5 |
|
| 6 |
- Fix normalization that was not handling properly balanced single-quoted |
| 7 |
strings along with escaped quotes inside. Thanks to Bertrand Bourgier for |
| 8 |
the report. |
| 9 |
- Fix placeholder requirements in the doc. |
| 10 |
- Fix case where no error sample log entries was reported. Thanks to john doe |
| 11 |
for the report. |
| 12 |
- Fix possible precedence problem between ! and %s. Thanks to Luca Santarelli |
| 13 |
and Philipp Trulson for the report. |
| 14 |
- Update pgFormatter code to v5.9 |
| 15 |
- Add github CI action for testing on commit push. |
| 16 |
- Fix parsing of %r placeholder in log_line_prefix. Thanks to nike7o0 for the |
| 17 |
report. |
| 18 |
- Fix uninitialized value warning. Thanks to Ales Zeleny for the report. |
| 19 |
- Enhance docs of ssh-options for postgres log parsing with examples. Thanks |
| 20 |
to Ulrich Konrad for the patch. |
| 21 |
- Add command --ssh-sudo to run commands over ssh as sudo. Thanks to Andrew |
| 22 |
Jackson for the patch. |
| 23 |
- Fix possible precedence problem between ! and string eq. Thanks to Adrien |
| 24 |
Nayrat for the report. |
| 25 |
- Fix parsing of pgbouncer stats. Thanks to mrgtt for the report. |
| 26 |
|
| 27 |
2025-03-16 - v13.1 |
| 28 |
|
| 29 |
This is a maintenance release of pgBadger that fixes issues reported by |
| 30 |
users since last release and adds some new features: |
| 31 |
|
| 32 |
- Add new report about vacuum throughput with a graph about vacuum per |
| 33 |
table that consume the more CPU. The table output reports I/O timing |
| 34 |
read and write per table as well as the CPU time elapsed on the table. |
| 35 |
Thanks to Ales Zeleny for the feature request. |
| 36 |
This patch also adds frozen pages and tuples to the Vacuums per Table |
| 37 |
report. |
| 38 |
- Add --no-fork option for debugging purpose to not fork processes at all. |
| 39 |
Thanks to Ales Zeleny for the feature request. |
| 40 |
- Add millisecond to the raw csv output. Thanks to Henrietta Dombrovskaya |
| 41 |
for the feature request. |
| 42 |
- Add log filename to sample reports when multiple file are processed. |
| 43 |
Thanks to Adrien Nayrat for the feature request. |
| 44 |
|
| 45 |
Here is the complete list of changes and acknowledgments: |
| 46 |
|
| 47 |
- Fix bind parameters parsing. Thanks to Thomas Kotzian for the patch |
| 48 |
- Apply query filter on multi-lines queries. Thanks to Benjamin Jacobs |
| 49 |
for the patch |
| 50 |
- Update test result for log filename storage changes |
| 51 |
- Fix ERROR vs LOG message level in json output. Thanks to Philippe Viegas |
| 52 |
for the report. |
| 53 |
- Remove import of tmpdir not exported method from File::Temp. Thanks to |
| 54 |
kmoradha for the report. |
| 55 |
|
| 56 |
2024-12-08 - v13.0 |
| 57 |
|
| 58 |
This is a major release of pgBadger that fixes issues reported by |
| 59 |
users since last release and adds some new features: |
| 60 |
|
| 61 |
* Add two new option to be able to redefined inbound of query and session |
| 62 |
histogram. |
| 63 |
--histogram-query VAL : use custom inbound for query times histogram. |
| 64 |
Default inbound in milliseconds: |
| 65 |
0,1,5,10,25,50,100,500,1000,10000 |
| 66 |
--histogram-session VAL : use custom inbound for session times histogram. |
| 67 |
Default inbound in milliseconds: |
| 68 |
0,500,1000,30000,60000,600000,1800000,3600000,28800000 |
| 69 |
Thanks to JosefMachytkaNetApp for the feature request. |
| 70 |
* Add support of auto_explain plan for csv and json log formats. Thanks |
| 71 |
to zxwsbg and to Alexander Rumyantsev for the report. |
| 72 |
* Add three LOG message that was not reported as events: unexpected EOF, |
| 73 |
incomplete startup packet and detected deadlock while waiting for. Thanks |
| 74 |
to dottle for the report. |
| 75 |
|
| 76 |
Backward compatibility issues: |
| 77 |
|
| 78 |
- Change the way LOG level events reported in the Events reports are |
| 79 |
stored. Some of them was still reported and counted as errors instead |
| 80 |
as LOG level entries. The fix is to stored and report them as EVENTLOG |
| 81 |
to differentiate them from queries. This change introduce a backward |
| 82 |
compatibility break when pgbadger is used in incremental mode. You will |
| 83 |
just have the double behavior during the week of the upgrade. |
| 84 |
Thanks to Matti Linnanvuori for the report. |
| 85 |
|
| 86 |
Bug fixes: |
| 87 |
|
| 88 |
- Fix non reported queries generating the most cancellation due to statement_timeout. |
| 89 |
- Update regression tests |
| 90 |
- Fix formatting of explain plan when extracted from csv log format. |
| 91 |
- Fix jsonlog missing autovacuum data reports: |
| 92 |
Average Autovacuum Duration, Tuples removed per table |
| 93 |
and vacuums by hour in autovacuum activity report. |
| 94 |
Thanks to Ales Zeleny for the patch. |
| 95 |
- Fix orphan line not associated to the time consuming bind queries. |
| 96 |
Thanks to Henrietta Dombrovskaya for the report. |
| 97 |
Fix use of uninitialized value in pattern match. Thanks to Junior Dias |
| 98 |
for the patch. |
| 99 |
- Apply option --csv-separator to raw export to CSV. Default separator |
| 100 |
is semicolon (;). Thanks to Henrietta Dombrovskaya for the feature |
| 101 |
request. |
| 102 |
- Raw csv output: do not add double quote to parameters and application |
| 103 |
name if they are empty. |
| 104 |
- Add double quotes when queries have a semi colon in raw csv output. |
| 105 |
Thanks to Henrietta Dombrovskaya for the report. |
| 106 |
|
| 107 |
2023-12-25 - v12.4 |
| 108 |
|
| 109 |
This is a maintenance release of pgBadger that fixes issues reported by |
| 110 |
users since last release. |
| 111 |
|
| 112 |
- Fix pgbouncer report with version 1.21. Thanks to Ales Zeleny for the patch. |
| 113 |
- Prevent parallelism perl file to be higher than the number of files. Thanks |
| 114 |
to maliangzhu for the report. |
| 115 |
- Fix regression test broken since v12.3. Thanks to ieshin for the report. |
| 116 |
- Fix cases where LOG entries where counted as ERROR log level entries. Thanks |
| 117 |
to Matti Linnanvuori for the report. |
| 118 |
|
| 119 |
2023-11-27 - v12.3 |
| 120 |
|
| 121 |
This is a maintenance release of pgBadger that fixes issues reported by |
| 122 |
users since last release. It also adds some new features: |
| 123 |
|
| 124 |
* Add option --include-pid to only report events related to a session |
| 125 |
pid (%p). Can be used multiple time. Thanks to Henrietta Dombrovskaya |
| 126 |
for the feature request. |
| 127 |
* Add option --include-session to only report events related to the |
| 128 |
session id (%c). Can be used multiple time. Thanks to Henrietta Dombrovskaya |
| 129 |
for the feature request. |
| 130 |
* Add new option --dump-raw-csv to only parse the log and dump the information |
| 131 |
into CSV format. No further processing is done, no report is generated. |
| 132 |
Thanks to Henrietta Dombrovskaya for the feature request. |
| 133 |
|
| 134 |
Here is the complete list of changes and acknowledgments: |
| 135 |
|
| 136 |
- Update pgFormatter to version 5.5 |
| 137 |
- Fix end date of parsing with jsonlog format. Thanks to jw1u1 for the report. |
| 138 |
- Fix typo in "Sessions per application". Thanks to fairyfar for the patch. |
| 139 |
- Fix "INSERT/UPDATE/DELETE Traffic" chart bug. Thanks to fairyfar for the |
| 140 |
patch. |
| 141 |
- Fix parsing of orphan lines with bind queries. Thanks to youxq for the |
| 142 |
report. |
| 143 |
- Fix Analyze per table report with new PG versions. Thanks to Jean-Christophe |
| 144 |
Arnu for the patch. |
| 145 |
- Fix syslog entry parser when the syslog timestamp contains milliseconds. |
| 146 |
Thanks to Pavel Rabel for the report. |
| 147 |
|
| 148 |
2023-08-20 - v12.2 |
| 149 |
|
| 150 |
This is a maintenance release of pgBadger that fixes issues reported by |
| 151 |
users since last release. It also adds two new features: |
| 152 |
|
| 153 |
* Add support for max, avg, min autovacuum duration. Thanks to Francisco |
| 154 |
Reinolds for the patch. |
| 155 |
* Add support for pgbouncer's average waiting time. Thanks to Francisco |
| 156 |
Reinolds for the patch. |
| 157 |
|
| 158 |
Here is the complete list of changes and acknowledgments: |
| 159 |
|
| 160 |
- Fix broken HTML output when application name contains <...>. Thanks to |
| 161 |
Fabio Geiss for the report. |
| 162 |
- Fix incorrect association of orphan lines when a filter on database was |
| 163 |
applied. Thanks to jcasanov for the report. |
| 164 |
- Fix logplex prefix parsing. |
| 165 |
- Fix logplex orphan lines detection. |
| 166 |
- Fix `autovacuum`'s `system usage: CPU: ...` line parsing. Thanks to |
| 167 |
Francisco Reinolds for the patch. |
| 168 |
- Avoid prepending output directory if output is stdout. |
| 169 |
- Standardise Average Query Duration label. Thanks to Francisco Reinolds |
| 170 |
for the patch |
| 171 |
- Update documentation for new pgbadger options. Thanks to Francisco Reinolds |
| 172 |
for the patch. |
| 173 |
- Fix case where parsing was not aborted when no file handle can be opened. |
| 174 |
Thanks to vp for the report. |
| 175 |
- Fix help by adding %p/%t mandatory placeholder log information. Thanks to |
| 176 |
Christophe Courtois for the patch. |
| 177 |
- Fix --retention parameter. Thanks to Bertrand Bourgier for the patch. |
| 178 |
- Fix cleanup output directory removed by commit 0e5c7d5 when HTML output dir |
| 179 |
is set. Thanks to Bertrand Bourgier for the report. |
| 180 |
- Fix output extension when destination directory contain a character that |
| 181 |
need to be escaped in regexp. Thanks to Bertrand Bourgier for the patch. |
| 182 |
- Replace calls to POSIX::strftime("%s", ....) by a call to localtime for |
| 183 |
Windows port. Thanks to Bertrand Bourgier for the patch. |
| 184 |
- Fix html output dir cleanup. Thanks to Bertrand Bourgier for the patch. |
| 185 |
- Use https for explain URL by default. Thanks to Philipp Trulson for the |
| 186 |
patch. |
| 187 |
|
| 188 |
2023-03-20 - v12.1 |
| 189 |
|
| 190 |
This is a maintenance release of pgBadger that fixes issues reported by users |
| 191 |
since past six months. |
| 192 |
|
| 193 |
Here is the complete list of changes and acknowledgments: |
| 194 |
|
| 195 |
- Fix parsing of multiline parameters. Thanks to Bekir Niyaz for the report. |
| 196 |
- Fix failure to normalize query with ::tsrange. Thanks to Philippe Griboval |
| 197 |
for the report. |
| 198 |
- Add logical decoding consistent point and start for slot log entries to |
| 199 |
the events report. |
| 200 |
- Handle other ns + timezone format in timestamp. Thanks to Ronan Dunklau |
| 201 |
for the report. |
| 202 |
- Fix detection of %m when notation with T is used. Thanks to Ronan Dunklau |
| 203 |
for the report. |
| 204 |
- Add parsing of CloudNativePG generated logs. Thanks to codrut panea for |
| 205 |
the patch. |
| 206 |
- Fix unused option --outdir in report generation. Thanks to Frederic Guiet |
| 207 |
for the report. |
| 208 |
- Update README with last documentation changes. Thanks to Manisankar for |
| 209 |
the report. |
| 210 |
- Fix a typo in pgbadger examples. Thanks to Shinichi Hashiba for the patch. |
| 211 |
|
| 212 |
2022-09-13 - v12.0 |
| 213 |
|
| 214 |
This major release of pgBadger fixes some issues reported by users since |
| 215 |
past five months. As usual there is also new features and improvements: |
| 216 |
|
| 217 |
* Remove support to Tsung output. |
| 218 |
* Improve pgbadger performances when there are hundred of bind parameters |
| 219 |
to replace. |
| 220 |
* Remove option -n | --nohighlight which is no more used since upgrade to |
| 221 |
pgFormatter 4. |
| 222 |
* Use POST method to send auto_explain plan to explain.depesz.com to avoid |
| 223 |
GET length parameter limit. |
| 224 |
* Apply --exclude-query and --include-query to bind/parse traces. |
| 225 |
* Add link to pgBadger report examples to documentation. |
| 226 |
|
| 227 |
Here is the complete list of changes and acknowledgments: |
| 228 |
|
| 229 |
- Fix monthly reports that was failing on "log file ... must exists". Thanks |
| 230 |
to Jaume Sabater for the report. |
| 231 |
- Fix pgbouncer start parsing debug message when input is stdin. Thanks to |
| 232 |
aleszeleny for the report. |
| 233 |
- Remove support to Tsung output. |
| 234 |
- Drastically improve pgbadger performances for bind parameters |
| 235 |
replacement that could make pgbadger run infinitely when there was |
| 236 |
hundred of parameters. Thanks to Monty Mobile for the report. |
| 237 |
- Fix documentation about pgBadger return codes and also some wrong return |
| 238 |
code at some places. Thanks to Jaume Sabater for the report. |
| 239 |
- Fix several typo. Thanks to David Gilman for the patch. |
| 240 |
- Remove option -n | --nohighlight which is no more used since upgrade to |
| 241 |
pgFormatter 4. Thanks to Elena Indrupskaya for the report. |
| 242 |
- Lot of pgbadger documentation fixes. Thanks to Elena Indrupskay from |
| 243 |
Postgres Pro for the patch. |
| 244 |
- Allow half hour in --log-timezone and --timezone, value can be an integer, |
| 245 |
ex: 2 or a float, ex: 2.5. Thanks to Mujjamil-K for the feature request. |
| 246 |
- Allow use of regexp for --exclude-app and --exclude-client. Thanks to |
| 247 |
rdnkrkmz for the feature request. |
| 248 |
- Allow use of --explain-url with previous commit and restore the limitation |
| 249 |
to explain text format. |
| 250 |
- Use POST method to send auto_explain plan to explain.depesz.com to avoid |
| 251 |
GET length parameter limit. Thanks to hvisage for the report. |
| 252 |
- Apply --exclude-query and --include-query to bind/parse traces. Thanks to |
| 253 |
Alec Lazarescu for the report. |
| 254 |
- Fix parsing of autovacuum stats from RDS logs. Thanks to David Gilman for |
| 255 |
the report. |
| 256 |
- Fix passing of log format when parsing remote log. Thanks to spookypeanut |
| 257 |
the report. |
| 258 |
- Add link to pgBadger report examples to documentation. |
| 259 |
- Fix Session per user reports. Thanks to vitalca for the report. |
| 260 |
- Fix jsonlog parsing from PG15 ouput |
| 261 |
- Fix text-based error/events reporting. Thanks to Michael Banck for the patch |
| 262 |
- Fix regexp typo in normalize_error(). Thanks to Michael Banck for the patch. |
| 263 |
|
| 264 |
2022-04-08 - v11.8 |
| 265 |
|
| 266 |
This release of pgBadger fix some issues reported by users since past |
| 267 |
three months and especially two fixes on new log entries detection in |
| 268 |
incremental mode. |
| 269 |
|
| 270 |
* Fix detection of new log entries with timestamp when millisecond (%m) or |
| 271 |
epoch (%n) was used in log_line_prefix. |
| 272 |
* Fix detection of new log entries in local file when multiprocess was not |
| 273 |
used. |
| 274 |
|
| 275 |
Here is the complete list of changes and acknowledgments: |
| 276 |
|
| 277 |
- Full review and simplification of the log file change detection. |
| 278 |
- Reports messages "could not (receive|send) data (from|to) client" in the |
| 279 |
Events reports. Thanks to Adrien Nayrat for the report. |
| 280 |
- Fix parsing issue when the name of a prepared query contain the ':' |
| 281 |
character. Thanks to aleszeleny for the report. |
| 282 |
- Fix detection of new log entries with timestamp when millisecond (%m) or |
| 283 |
epoch (%n). Thanks to aleszeleny for the report. |
| 284 |
- Fix detection of new log entries in local file when multiprocess was not |
| 285 |
used. Thanks to aleszeleny for the report. |
| 286 |
- Fix detection of new log entries in remote files through ssh. Thanks to |
| 287 |
Luca Ferrari for the report |
| 288 |
- Fix garbage in username of "Connections per user" report. Thanks to |
| 289 |
caseyandgina for the report. |
| 290 |
- Fix ssh command when using URI, the ssh options was missing. Thanks to Luca |
| 291 |
Ferrari for the report. |
| 292 |
- Handle queryid %Q placeholder. Thanks to Adrien Nayrat for the patch. |
| 293 |
- Fix typo in error sentence. Thanks to Luca Ferrari for the patch |
| 294 |
- Report message: "server process was terminated by signal" in the Events |
| 295 |
report. Thanks to Avi Vallarapu for the report. |
| 296 |
- doc: fix filename for incremental every week command. Thanks to Theophile |
| 297 |
Helleboid for the patch. |
| 298 |
- t/04_advanced.t: Fix syslog test. Thanks to Christoph Berg for the patch. |
| 299 |
|
| 300 |
2022-01-23 - v11.7 |
| 301 |
|
| 302 |
This release of pgBadger fix some issues reported by users since past |
| 303 |
five months as well as some improvements: |
| 304 |
|
| 305 |
* Add new option --no-progressbar option to not display it but keep the |
| 306 |
other outputs. |
| 307 |
* Add new option --day-report that can be used to rebuild an HTML report |
| 308 |
over the specified day. Like option --month-report but only for a day. |
| 309 |
It requires the incremental output directories and the presence of all |
| 310 |
necessary binary data files. The value is date in format: YYYY-MM-DD |
| 311 |
* Improve parsing of Heroku logplex and cloudsql json logs. |
| 312 |
|
| 313 |
Here is the complete list of changes and acknowledgments: |
| 314 |
|
| 315 |
- Update contribution guidelines and Makefile.PL to improve consistency, |
| 316 |
clarity, and dependencies. Thanks to diffuse for the patch. |
| 317 |
- Fix use of last parse file (--last-parsed) with binary mode. Thanks to |
| 318 |
wibrt for the report. |
| 319 |
- Add regression test for --last-parsed use and fix regression test on |
| 320 |
report for temporary files only. |
| 321 |
- Fix title for session per host graph. Thanks to Norbert Bede for the |
| 322 |
report. |
| 323 |
- Fix week number when computing weeks reports when --iso-week-number |
| 324 |
and --incremental options was enabled. Thanks to hansgv for the report. |
| 325 |
- Add --no-progressbar option to not display it and keep the other outputs. |
| 326 |
Thanks to seidlmic for the feature request. |
| 327 |
- Prevent too much unknown format line prints in debug mode for multi-line |
| 328 |
jsonlog. |
| 329 |
- Fix parsing of single line cloudsql json log. Thanks to Thomas Leclaire |
| 330 |
for the report. |
| 331 |
- Fix temporary files summary with log_temp_files only. |
| 332 |
- Print debug message with -v even if -q or --quiet is used. |
| 333 |
- Fix autodetection of jsonlog file. |
| 334 |
- Fix parsing of cloudsql log file. Thanks to Luc Lamarle for the report. |
| 335 |
- Fixes pid extraction in parse_json_input. Thanks to Francois Scala for |
| 336 |
the patch. |
| 337 |
- Add new option --day-report with value as date in format: YYYY-MM-DD |
| 338 |
that can be used to rebuild an HTML report over the specified day. |
| 339 |
Thanks to Thomas Leclaire for the feature request. |
| 340 |
- Fix query counter in progress bar. Thanks to Guillaume Lelarge for the |
| 341 |
report. |
| 342 |
- Fix incomplete queries stored for top bind and prepare reports. |
| 343 |
- Fix normalization of object identifier, in some case the numbers was |
| 344 |
replaced by a ?. |
| 345 |
- Fix unformatted normalized queries when there is a comment at beginning. |
| 346 |
- Fix multi-line in stderr format when --dbname is used. Thanks to |
| 347 |
Guillaume Lelarge for the report. |
| 348 |
- Fix not generated reports in incremental mode when --dbname is used. |
| 349 |
Thanks to Dudley Perkins for the report. |
| 350 |
- Do not die anymore if a binary file is not compatible, switch to next |
| 351 |
file. Thanks to Thomas Leclaire for the suggestion. |
| 352 |
- Fix Heroku logplex format change in pgbadger parser. Thanks to François |
| 353 |
Pietka for the report. |
| 354 |
|
| 355 |
2021-09-04 - v11.6 |
| 356 |
|
| 357 |
This release of pgBadger fix some issues reported by users since past |
| 358 |
seven months as well as some improvements: |
| 359 |
|
| 360 |
* Add detection of Query Id in log_line_prefix new in PG14. Thanks to |
| 361 |
Florent Jardin for the report. |
| 362 |
* Add advanced regression tests with db exclusion and the explode |
| 363 |
feature. Thanks to MigOps Inc for the patch. |
| 364 |
* Apply multiprocess to report generation when --explode is used. |
| 365 |
Thanks to MigOps Inc for the patch and Thomas Leclaire for the |
| 366 |
feature request. |
| 367 |
* Add --iso-week-number in incremental mode, calendar's weeks start |
| 368 |
on a Monday and respect the ISO 8601 week number, range 01 to 53, |
| 369 |
where week 1 is the first week that has at least 4 days in the new |
| 370 |
year. Thanks to Alex Muntada for the feature request. |
| 371 |
* Add command line option --keep-comments to not remove comments from |
| 372 |
normalized queries. It can be useful if you want to distinguish |
| 373 |
between same normalized queries. Thanks to Stefan Corneliu Petrea |
| 374 |
for the feature request. |
| 375 |
* Skip INFO lines introduced in PostgreSQL log file by third parties |
| 376 |
software. Thanks to David Piscitelli for the report. |
| 377 |
* Add compatibility with PostgresPro log file including rows number |
| 378 |
and size in bytes following the statement duration. Thanks to |
| 379 |
panatamann for the report. |
| 380 |
* Parse times with T's to allow using the timestamps from journalctl. |
| 381 |
Thanks to Graham Christensen for the patch. |
| 382 |
* Improve Windows port. Thanks to Bertrand Bourgier for the patches. |
| 383 |
|
| 384 |
Important note: |
| 385 |
|
| 386 |
* Expect that --iso-week-number will be the default in next major |
| 387 |
release and that --start-monday option will be removed as the week |
| 388 |
will always start a Monday. The possibility to have week reports |
| 389 |
start a Sunday will be removed to simplify the code. |
| 390 |
|
| 391 |
Here is the complete list of changes and acknowledgments: |
| 392 |
|
| 393 |
- Fix duplicate of warning message: |
| 394 |
"database ... must be vacuumed within ... transactions". |
| 395 |
Thank to Christophe Courtois for the report. |
| 396 |
- Fix use of uninitialized variable. Thanks to phiresky for the report. |
| 397 |
- Improve query id detection, it can be negative, as well as read it |
| 398 |
from csvlog. |
| 399 |
- Fix case where last file in incremental mode is always parsed even if |
| 400 |
it was already done. Thanks to Thomas Leclaire for the report. |
| 401 |
- Update syslog format regex to handle where session line indicator |
| 402 |
only contains one int vs two ints separated by dash. Thanks to |
| 403 |
Timothy Alexander for the patch. |
| 404 |
- Fix --exclude-db option to create anyway the related report with json |
| 405 |
log. Thanks to MigOps Inc for the patch and Thomas Leclaire for the |
| 406 |
report. |
| 407 |
- Add regression test about Storable buggy version. |
| 408 |
- Fix use of uninitialized value in substitution iterator in incremental |
| 409 |
mode during the week report generation. Thanks to Thomas Leclaire, |
| 410 |
Michael Vitale, Sumeet Shukla and Stefan Corneliu Petrea for the report. |
| 411 |
- Add 'g' option to replace all bind parameters. Thanks to Nicolas Lutic |
| 412 |
and Sebastien Lardiere for the patch. |
| 413 |
- Documentation improvements. Thanks to Stefan Petrea for the patch. |
| 414 |
- Fixes change log time zone calculation. Thanks to Stefan Petrea for |
| 415 |
the patch. |
| 416 |
- Fix log filter by begin/end time. |
| 417 |
- Fix wrong association of orphan lines for multi-line queries with a |
| 418 |
filter on database. Thanks to Abhishek Mehta for the report. |
| 419 |
- Fix reports in incremental mode when --dbname parameter is partially |
| 420 |
ignored with "explode" option (-E). Thanks to lrevest for the report. |
| 421 |
- Update javascript resources. |
| 422 |
- Fix display of menu before switching to hamburger mode when screen is |
| 423 |
reduced. Thanks to Guillaume Lelarge for the report. |
| 424 |
- Fix bind parameters values over multiple lines in the log that were |
| 425 |
not well supported. |
| 426 |
- Apply same fix for previous patch than in pgFormatter. |
| 427 |
- Fix an other use of uninitialized value in substitution iterator from |
| 428 |
pgFormatter code. Thanks to Christophe Courtois for the report. |
| 429 |
- Fix query normalization. Thanks to Jeffrey Beale for the patch. |
| 430 |
- Be sure that all statements end with a semicolon when --dump-all-queries |
| 431 |
is used. Thanks to Christian for the report. |
| 432 |
- Fix typo and init of EOL type with multiple log files. |
| 433 |
- Add auto detection of EOL type to fix LAST_PARSED offset when OEL is on |
| 434 |
2 bytes (Windows case). Thanks to Bertrand Bourgier for the patch. |
| 435 |
- Fix get_day_of_week() port on Windows where strftime %u is not supported. |
| 436 |
Thanks to Bertrand Bourgier for the patch. |
| 437 |
- Fix Windows port that call pl2bat.bat perl utility to create a corrupted |
| 438 |
pgbadger.bat du to the way __DATA__ was read in pgbadger. Thanks to |
| 439 |
Bertrand Bourgier for the patch. |
| 440 |
- Fix begin/end time filter and add regression test for timestamp filters. |
| 441 |
Thanks to Alexis Lahouze and plmayekar for the report. |
| 442 |
- Fix use of uninitialized value in pattern match introduced by pgFormatter |
| 443 |
update. Thanks to arlt for the report. |
| 444 |
|
| 445 |
2021-02-18 - v11.5 |
| 446 |
|
| 447 |
This release of pgBadger fix some issues reported by users since |
| 448 |
past three months as well as some improvements: |
| 449 |
|
| 450 |
* Add report about sessions idle time, computed using: |
| 451 |
"total sessions time - total queries time / number of sessions |
| 452 |
This require that log_connection and log disconnection have been |
| 453 |
enabled and that log_min_duration_statement = 0 (all queries logged) |
| 454 |
to have a reliable value. This can help to know how much idle time |
| 455 |
is lost, and if a pooler transaction mode would be useful. |
| 456 |
This report is available in the "Sessions" tab of "Global Stats" |
| 457 |
and in the "Sessions" tab of "General Activity" reports (per hour). |
| 458 |
* Add anonymization of numeric values, replaced by 4 random digits. |
| 459 |
* Update SQL beautifier based on pgFormatter 5.0. |
| 460 |
|
| 461 |
Here is the complete list of changes and acknowledgments: |
| 462 |
|
| 463 |
- Fix parsing of cloudsql multi-line statement. Thanks to Jon Young for the report. |
| 464 |
- Add regression test for anonymization. |
| 465 |
- Fix anonymization broken by maxlength truncate. Thanks to artl for the report. |
| 466 |
- Add anonymization of parameter in time consuming prepare and bind reports. Thanks to arlt for the report. |
| 467 |
- Add support to microseconds in logplex log line prefix. Thanks to Ross Gardiner for the report. |
| 468 |
- Add report about sessions idle time. Thanks to Guillaume Lelarge for the feature request. |
| 469 |
- Complete patch to support multi-line in jsonlog format. |
| 470 |
|
| 471 |
|
| 472 |
2020-11-24 - v11.4 |
| 473 |
|
| 474 |
This release of pgBadger fix some issues reported by users since |
| 475 |
past four months. Improve support for PostgreSQL 13 log information |
| 476 |
and adds some new features: |
| 477 |
|
| 478 |
* Add full autovacuum information in "Vacuums per table" report for |
| 479 |
buffer usage (hits, missed, dirtied), skipped due to pins, skipped |
| 480 |
frozen and WAL usage (records, full page images, bytes). In report |
| 481 |
"Tuples removed per table" additional autovacuum information are |
| 482 |
tuples remaining, tuples not yet removable and pages remaining. |
| 483 |
These information are only available on the "Table" tab. |
| 484 |
* Add new repartition report about checkpoint starting causes. |
| 485 |
* Add detection of application name from connection authorized traces. |
| 486 |
|
| 487 |
Here is the complete list of changes and acknowledgments: |
| 488 |
|
| 489 |
- Fix typo in an error message. Thanks to Vidar Tyldum for the patch. |
| 490 |
- Fix Windows port with error: "can not load incompatible binary data". |
| 491 |
Thanks to Eric Brawner for the report. |
| 492 |
- Fix typo on option --html-outdir in pgbadger usage and documentation. |
| 493 |
Thanks to Vidar Tyldum for the patch. |
| 494 |
- Fix autodetection of jsonlog/cloudsql format. Thanks to Jon Young |
| 495 |
for the report. |
| 496 |
- Fix CSV log parsing with PG v13. Thanks to Kanwei Li for the report |
| 497 |
and Kaarel Moppel for the patch. |
| 498 |
- Fix sort of queries generating the most temporary files report. |
| 499 |
Thanks to Sebastien Lardiere for the report. |
| 500 |
- Add pgbadger version trace in debug mode. |
| 501 |
|
| 502 |
|
| 503 |
2020-07-26 - v11.3 |
| 504 |
|
| 505 |
This release of pgBadger fix several issues reported by users since |
| 506 |
past four months. It also adds some new features and new command line |
| 507 |
options: |
| 508 |
|
| 509 |
* Add autodetection of UTC timestamp to avoid applying timezone |
| 510 |
for graphs. |
| 511 |
* Add support to GCP CloudSQL json log format. |
| 512 |
* Add new option --dump-all-queries to use pgBadger to dump all |
| 513 |
queries to a text file, no report is generated just the full list |
| 514 |
of statements found in the PostgreSQL log. Bind parameters are |
| 515 |
inserted into the queries at their respective position. |
| 516 |
* Add new option -Q | --query-numbering used to add numbering of |
| 517 |
queries to the output when using options --dump-all-queries or |
| 518 |
--normalized-only. |
| 519 |
* Add new command line option --tempdir to set the directory where |
| 520 |
temporary files will be written. Can be useful on system that do |
| 521 |
not allow writing to /tmp. |
| 522 |
* Add command line option --ssh-port used to set the ssh port if not |
| 523 |
default to 22. The URI notation also adds support to ssh port |
| 524 |
specification by using the form: |
| 525 |
ssh://192.168.1.100:2222//var/log/postgresql-11.log |
| 526 |
|
| 527 |
Here is the complete list of changes and acknowledgments: |
| 528 |
|
| 529 |
- Fix incremental reports for jsonlog/cloudsql log format. Thanks |
| 530 |
to Ryan DeShone for the report |
| 531 |
- Add autodetection of UTC timestamp to avoid applying autodetected |
| 532 |
timezone for graphs. With UTC time the javascript will apply the |
| 533 |
local timezone. Thanks to Brett Stauner for the report. |
| 534 |
- Fix incremental parsing of journalctl logs doesn't work from the |
| 535 |
second run. Thanks to Paweł Koziol for the patch. |
| 536 |
- Fix path to resources file when -X and -E are used. Thanks to Ryan |
| 537 |
DeShone for the report. |
| 538 |
- Fix General Activity report about read/write queries. Thanks to |
| 539 |
alexandre-sk5 for the report. |
| 540 |
- Add debug message when parallel mode is not use. |
| 541 |
- Fix elsif logic in file size detection and extra space introduced |
| 542 |
in the journalctl command when the --since option is added. Thanks |
| 543 |
to Pawel Koziol for the patch. |
| 544 |
- Fix "not a valid file descriptor" error. Thanks to Pawel Koziol |
| 545 |
for the report. |
| 546 |
- Fix incremental mode with RDS files. Thanks to Ildefonso Camargo, |
| 547 |
nodje and John Walsh for the report. |
| 548 |
- Add new option -Q | --query-numbering used to add numbering of |
| 549 |
queries to the output when using options --dump-all-queries or |
| 550 |
--normalized-only. This can be useful to extract multiline queries |
| 551 |
in the output file from an external script. Thanks to Shantanu Oak |
| 552 |
for the feature request. |
| 553 |
- Fix parsing of cloudsql json logs when log_min_duration_statement |
| 554 |
is enabled. Thanks to alexandre-sk5 for the report. |
| 555 |
- Fix wrong hash key for users in RDS log. Thanks to vosmax for the |
| 556 |
report. |
| 557 |
- Fix error related to modification of non-creatable array value. |
| 558 |
Thanks to John Walsh and Mark Fletcher for the report. |
| 559 |
- Add support to GCP CloudSQL json log format, log format (-f) is |
| 560 |
jsonlog. Thanks to Thomas Poindessous for the feature request. |
| 561 |
- Add new option --dump-all-queries to use pgBadger to dump all |
| 562 |
queries to a text file, no report is generated just the full list |
| 563 |
of statements found in the PostgreSQL log. Bind parameters are |
| 564 |
inserted into the queries at their respective position. There is |
| 565 |
not sort on unique queries, all queries are logged. Thanks to |
| 566 |
Shantanu Oak for the feature request. |
| 567 |
- Add documentation for --dump-all-queries option. |
| 568 |
- Fix vacuum report for new PG version. Thanks to Alexey Timanovsky |
| 569 |
for the report. |
| 570 |
- Add new command line option --no-process-info to disable change of |
| 571 |
process title to help identify pgbadger process, some system do |
| 572 |
not allow it. Thanks to Akshay2378 for the report. |
| 573 |
- Add new command line option --tempdir to set the directory where |
| 574 |
temporary files will be written. Default: |
| 575 |
File::Spec->tmpdir() || '/tmp' |
| 576 |
Can be useful on system that do not allow writing to /tmp. Thanks |
| 577 |
to Akshay2378 for the report. |
| 578 |
- Fix unsupported compressed filenames with spaces and/or brackets. |
| 579 |
Thanks to Alexey Timanovsky for the report. |
| 580 |
- Add command line option --ssh-port used to set the ssh port if not |
| 581 |
default to 22. The URI notation also adds support to ssh port |
| 582 |
specification by using the form: |
| 583 |
ssh://192.168.1.100:2222//var/log/postgresql-11.log |
| 584 |
Thanks to Augusto Murri for the feature request. |
| 585 |
|
| 586 |
|
| 587 |
2020-03-11 - v11.2 |
| 588 |
|
| 589 |
This release of pgBadger fix several issues reported by users since |
| 590 |
past six months. It also adds some new features: |
| 591 |
|
| 592 |
* Add support and autodetection of AWS redshift log format. |
| 593 |
* Add support to pgbouncer 1.11 new log format. |
| 594 |
* Handle zstd and lz4 compression format |
| 595 |
* Allow to fully separate statistics build and HTML report build in |
| 596 |
incremental mode without having to read a log file. For example |
| 597 |
it is possible to run pgbadger each hours as follow: |
| 598 |
|
| 599 |
pgbadger -I -O "/out-dir/data" --noreport /var/log/postgresql*.log |
| 600 |
|
| 601 |
It just creates the data binary files in "/out-dir/data" then |
| 602 |
for example you can make reports each night for the next day in |
| 603 |
a separate directory `/out-dir/reports`: |
| 604 |
|
| 605 |
pgbadger -I -l "/out-dir/data/LAST_PARSED" -H "/out-dir/reports" /out-dir/data/2020/02/19/*.bin |
| 606 |
|
| 607 |
This require to set the path to the last parsed information, the |
| 608 |
path where HTML reports will be written and the binary data file |
| 609 |
of the day. |
| 610 |
|
| 611 |
There is also new command line options: |
| 612 |
|
| 613 |
* Add new command line option --explain-url used to override the url |
| 614 |
of the graphical explain tool. Default URL is: |
| 615 |
|
| 616 |
http://explain.depesz.com/?is_public=0&is_anon=0&plan= |
| 617 |
|
| 618 |
If you want to use a local install of PgExplain or an other tool. |
| 619 |
pgBadger will add the plan in text format escaped at the end of |
| 620 |
the URL. |
| 621 |
|
| 622 |
* Add new option --no-week to instruct pgbadger to not build weekly |
| 623 |
reports in incremental mode. Useful if it takes too much time and |
| 624 |
resources. |
| 625 |
|
| 626 |
* Add new command line option --command to be able to set a command |
| 627 |
that pgBadger will execute to retrieve log entries on stdin. |
| 628 |
pgBadger will open a pipe to the command and parse log entries |
| 629 |
generated by the command. For example: |
| 630 |
|
| 631 |
pgbadger -f stderr --command 'cat /var/log/postgresql.log' |
| 632 |
|
| 633 |
which is the same as executing pgbadger with the log file directly |
| 634 |
as argument. The interest of this option is obvious if you have to |
| 635 |
modify the log file on the fly or that log entries are extracted |
| 636 |
from a program or generated from a database. For example: |
| 637 |
|
| 638 |
pgbadger -f csv --command 'psql dbname -c "COPY jrn_log TO STDOUT (FORMAT CSV)"' |
| 639 |
|
| 640 |
* Add new command line option --noexplain to prevent pgBadger to |
| 641 |
parse and report explain plan written to log by auto_explain |
| 642 |
extension. This is useful if you have a PostgreSQL version < 9.0 |
| 643 |
where pgBadger generate broken reports when there is explain plan |
| 644 |
in log. |
| 645 |
|
| 646 |
Backward compatibility: |
| 647 |
|
| 648 |
- By default pgBadger will truncate queries up to 100000 characters. |
| 649 |
This arbitrary value and can be adjusted using option --maxlength. |
| 650 |
Previous behavior was to not truncate queries but this could |
| 651 |
lead in excessive resources usage. Limiting default size is safer |
| 652 |
and the size limit might allow no truncate in most cases. However |
| 653 |
queries will not be beautified if they exceed 25000 characters. |
| 654 |
|
| 655 |
Here is the complete list of changes and acknowledgments: |
| 656 |
|
| 657 |
- Fix non working --exclude-client option. Thanks to John Walsh |
| 658 |
for the report. |
| 659 |
- Add regression test for RDS log parsing and --exclude-client. |
| 660 |
- Fix progress bar for pgbouncer log file. The "queries" label is |
| 661 |
changed in "stats" for pgbouncer log files. |
| 662 |
- Add command line option --explain-url used to override the url |
| 663 |
of the graphical explain tool. Thanks to Christophe Courtois for |
| 664 |
the feature request. |
| 665 |
- Add support to pgbouncer 1.11 new log format. Thanks to Dan |
| 666 |
Aksenov for the report. |
| 667 |
- Handle zstd and lz4 compression format. Thanks to Adrien Nayrat |
| 668 |
for the patch. |
| 669 |
- Add support and autodetection of AWS redshift log format. Thanks |
| 670 |
to Bhuvanesh for the reature request. |
| 671 |
- Update documentation about redshift log format. |
| 672 |
- Add new option --no-week to instruct pgbadger to not build weekly |
| 673 |
reports in incremental mode. Thanks to cleverKermit17 for the |
| 674 |
feature request. |
| 675 |
- Fix a pattern match on file path that breaks pgBadger on Windows. |
| 676 |
- Fix #554 about cyrillic and other encoded statement parameters |
| 677 |
that was not reported properly in the HTML report even with custom |
| 678 |
charset. The regression was introduced with a fix to the well |
| 679 |
known Perl error message "Wide character in print". The patch have |
| 680 |
been reverted and a new command line option: --wide-char is |
| 681 |
available to recover this behavior. Add this option to your |
| 682 |
pgbadger command if you have message "Wide character in print". |
| 683 |
Add a regression test with Cyrillic and french encoding. Thanks |
| 684 |
to 4815162342lost and yethee for the report. |
| 685 |
- Update documentation to inform that lc_messages = 'en_US.UTF-8' |
| 686 |
is valid too. Thanks to nodje for the report. |
| 687 |
- Update documentation about --maxlength which default truncate size |
| 688 |
is 100000 and no more default to no truncate. Thanks to nodje for |
| 689 |
the report. |
| 690 |
- Fix retention calculation at year overlap. Thanks to Fabio Pereira |
| 691 |
for the patch. |
| 692 |
- Fix parsing of rds log file format. Thanks to Kadaffy Talavera for |
| 693 |
the report. |
| 694 |
- Prevent generating empty index file in incremental mode when there |
| 695 |
is no new log entries. Thanks to Kadaffy Talavera for the report. |
| 696 |
- Fix non up to date documentation. Thanks to Eric Hanson for the |
| 697 |
patch. |
| 698 |
- Fixes the command line parameter from -no-explain to -noexplain. |
| 699 |
Thanks to Indrek Toom for the patch. |
| 700 |
- Fall back to default file size when totalsize can not be found. |
| 701 |
Thanks to Adrien Nayrat for the patch. |
| 702 |
- Fix some dates in examples. Thanks to Greg Clough for the patch. |
| 703 |
- Use compressed file extension regexp in remaining test and extract |
| 704 |
.bin extension in a separate condition. |
| 705 |
- Handle zstd and lz4 compression format. Thanks to Adrien Nayrat |
| 706 |
for the patch. |
| 707 |
- Fix remaining call of SIGUSR2 on Windows. Thanks to inrap for the |
| 708 |
report. |
| 709 |
- Fix progress bar with log file of indetermined size. |
| 710 |
- Add new command line option --command to be able to set a command |
| 711 |
that pgBadger will execute to retrieve log entries on stdin. |
| 712 |
Thanks to Justin Pryzby for the feature request. |
| 713 |
- Add new command line option --noexplain to prevent pgBadger to |
| 714 |
parse and report explain plan written to log by auto_explain |
| 715 |
extension. This is useful if you have a PostgreSQL version < 9.0 |
| 716 |
where pgBadger generate broken reports when there is explain plan |
| 717 |
in log. Thanks to Massimo Sala for the feature request. |
| 718 |
- Fix RDS log parsing when the prefix is set at command line. Thanks |
| 719 |
to Bing Zhao for the report. |
| 720 |
- Fix incremental mode with rds log format. Thanks to Bing Zhao for |
| 721 |
the report. |
| 722 |
- Fix possible rds log parsing. Thanks to James van Lommel and Simon |
| 723 |
Dobner for the report. |
| 724 |
- Fix statement classification and add regression test. Thanks to |
| 725 |
alexanderlaw for the report. |
| 726 |
- Fix anonymization of single characters in IN clause. Thanks to |
| 727 |
Massimo Sala for the report. |
| 728 |
- Fix RDS log parsing for rows without client/user/db information. |
| 729 |
Thanks to Konrad for the report. |
| 730 |
|
| 731 |
2019-09-16 - v11.1 |
| 732 |
|
| 733 |
This release of pgBadger fix several issues reported by users since |
| 734 |
three months. It also adds some new features and reports: |
| 735 |
|
| 736 |
- Add report of top N queries that consume the most time in the |
| 737 |
prepare or parse stage. |
| 738 |
- Add report of top N queries that consume the most time in the |
| 739 |
bind stage. |
| 740 |
- Add report of timing for prepare/bind/execute queries parts. |
| 741 |
Reported in a new "Duration" tab in Global Stats report. Example: |
| 742 |
Total query duration: 6m16s |
| 743 |
Prepare/parse total duration: 45s564ms |
| 744 |
Bind total duration: 4m46s |
| 745 |
Execute total duration: 44s71m |
| 746 |
This also fix previous report of "Total query duration" that was |
| 747 |
only reporting execute total duration. |
| 748 |
- Add support to RDS and CloudWatch log format, they are detected |
| 749 |
automatically. You can use -f rds if pgbadger is not able to |
| 750 |
auto-detect the log format. |
| 751 |
- Add new configuration option --month-report to be able to build |
| 752 |
monthly incremental reports. |
| 753 |
- Restore support to Windows operating system. |
| 754 |
|
| 755 |
There's also some bugs fixes and features enhancements. |
| 756 |
|
| 757 |
- Add auto-generated Markdown documentation in README.md using tool |
| 758 |
pod2markdown. If the command is not present the file will just not |
| 759 |
be generated. Thanks to Derek Yang for the patch. |
| 760 |
- Translate action WITH into CTE, regression introduced in last release. |
| 761 |
- Fix support of Windows Operating System |
| 762 |
- Add support to RDS and CloudWatch log format, use -f rds if pgbadger is |
| 763 |
not able to auto-detect this log format. Thanks to peruuparkar for the |
| 764 |
feature request. |
| 765 |
- Fix option -f | --format that was not applied on all files get from the |
| 766 |
parameter list where log format auto-detection was failing, the format was |
| 767 |
taken from the fist file parsed. Thanks to Levente Birta for the report. |
| 768 |
- Update source documentation file to replace reference to pgBadger v7.x |
| 769 |
with v11. Thanks to Will Buckner for the patch. |
| 770 |
- Limit height display size of top queries to avoid taking the whole page |
| 771 |
with huge queries. Thanks to ilias ilisepe1 for the patch. |
| 772 |
- Fix overflow of queries and detail in Slowest individual queries. |
| 773 |
- Fix SSH URIs for files, directories and wildcards. Thanks to tbussmann for |
| 774 |
the patch. |
| 775 |
- Fix URI samples in documentation. Thanks to tbussmann for the patch. |
| 776 |
- Hide message of use of default out file when --rebuild is used. |
| 777 |
- Add extra newline to usage() output to not bread POD documentation at |
| 778 |
make time. |
| 779 |
- Reapply --exclude-client option description in documentation. Thanks to |
| 780 |
Christoph Berg for the report. |
| 781 |
|
| 782 |
2019-06-25 - v11.0 |
| 783 |
|
| 784 |
This release of pgBadger adds some major new features and fixes some |
| 785 |
issues reported by users since the last four months. New features: |
| 786 |
|
| 787 |
- Regroup cursor related query (DECLARE,CLOSE,FETCH,MOVE) into new |
| 788 |
query type CURSOR. |
| 789 |
- Add top bind queries that generate the more temporary files. |
| 790 |
Require log_connection and log_disconnection be activated. |
| 791 |
- Add --exclude-client command line option to be able to exclude log |
| 792 |
entries for the specified client ip. Can be used multiple time. |
| 793 |
- Allow to use time only in --begin and --end filters. |
| 794 |
- Add -H, --html-dir option to be able to set a different path where |
| 795 |
HTML report must be written in incremental mode. Binary files stay |
| 796 |
on directory defined with -O, --outdir option. |
| 797 |
- Add -E | --explode option to explode the main report into one |
| 798 |
report per database. Global information not related to a database |
| 799 |
are added to the postgres database report. |
| 800 |
- Add per database report to incremental mode. In this mode there |
| 801 |
will be a sub directory per database with dedicated incremental |
| 802 |
reports. |
| 803 |
- Add support to Heroku's PostgreSQL logplex format. Log can be |
| 804 |
parsed using: |
| 805 |
|
| 806 |
heroku logs -p postgres | pgbadger -f logplex -o heroku.html - |
| 807 |
|
| 808 |
- When a query is > 10Kb we first limit size of all constant string |
| 809 |
parameters to 30 characters and then the query is truncated to 10Kb. |
| 810 |
This prevent pgbadger to waste time/hang with very long queries |
| 811 |
when inserting bytea for example. The 10Kb limit can be controlled |
| 812 |
with the --maxlength command line parameter. |
| 813 |
The query is normalized or truncated to maxlength value only after |
| 814 |
this first attempt to limit size. |
| 815 |
|
| 816 |
This new release breaks backward compatibility with old binary or JSON |
| 817 |
files. This also mean that incremental mode will not be able to read |
| 818 |
old binary file. If you want to update pgBadger and keep you old reports |
| 819 |
take care to upgrade at start of a new week otherwise weekly report will |
| 820 |
be broken. pgBadger will print a warning and just skip the old binary |
| 821 |
file. |
| 822 |
|
| 823 |
There's also some bugs fixes and features enhancements. |
| 824 |
|
| 825 |
- Add a warning about version and skip loading incompatible binary file. |
| 826 |
- Update code formatter to pgFormatter 4.0. |
| 827 |
- Fix pgbadger hang on Windows OS. Thanks to JMLessard for the report. |
| 828 |
- Update tools/pgbadger_tools script to be compatible with new binary |
| 829 |
file format in pgBadger v11. |
| 830 |
- Add top bind queries that generate the more temporary files. This |
| 831 |
collect is possible only if log_connection and log_disconnection |
| 832 |
are activated in postgresql.conf. Thanks to Ildefonso Camargo for |
| 833 |
the feature request. |
| 834 |
- Fix auto detection of timezone. Thanks to massimosala for the fix. |
| 835 |
- Remove some remaining graph when --nograph is used |
| 836 |
- Force use of .txt extension when --normalized-only is used. |
| 837 |
- Fix report of auto vacuum/analyze in logplex format. Thanks to |
| 838 |
Konrad zichul for the report. |
| 839 |
- Fix use of progress bar on Windows operating system. Thanks to |
| 840 |
JMLessard for the report. |
| 841 |
- Use a `$prefix_vars{'t_time'} to store the log time. Thanks to Luca |
| 842 |
Ferrari for the patch. |
| 843 |
- Update usage and documentation to remove perl command from pgbadger |
| 844 |
invocations. Thanks to Luca Ferrari for the patch. |
| 845 |
- Use begin and end with times without date. Thanks to Luca Ferrari |
| 846 |
for the patch. |
| 847 |
- Added some very minor spelling and grammar fixes to the readme file. |
| 848 |
Thanks to ofni yratilim for the patch. |
| 849 |
- Fix remote paths using SSH. Thanks to Luca Ferrari for the patch. |
| 850 |
- Update regression test to works with new structure introduced with |
| 851 |
the per database report feature. |
| 852 |
- Fix fractional seconds in all begin and end parameters. Thanks to |
| 853 |
Luca Ferrari for the patch. |
| 854 |
- Fix documentation URL. Thanks to Kara Mansel for the report. |
| 855 |
- Fix parsing of auto_explain. |
| 856 |
Add more information about -U option that can be used multiple time. |
| 857 |
Thanks to Douglas J Hunley for the report. |
| 858 |
- Lot of HTML / CSS report improvements. Thanks to Pierre Giraud for |
| 859 |
the patches. |
| 860 |
- Update resource file. |
| 861 |
- Add regression test for logplex format. |
| 862 |
- Add support to Heroku's PostgreSQL logplex format. You should be able |
| 863 |
to parse these logs as follow: |
| 864 |
heroku logs -p postgres | pgbadger -f logplex -o heroku.html - |
| 865 |
or if you have already saved the output to a file: |
| 866 |
pgbadger heroku.log |
| 867 |
The logplex format is auto-dectected like any other supported format. |
| 868 |
pgBadger understand the following default log_line_prefix: |
| 869 |
database = %d connection_source = %r sql_error_code = %e |
| 870 |
or simply: |
| 871 |
sql_error_code = %e |
| 872 |
Let me know if there's any other default log_line_prefix. The prefix |
| 873 |
can always be set using the -p | --prefix pgbadger option: |
| 874 |
pgbadger --p 'base = %d source = %r sql_state = %e' heroku.log |
| 875 |
for example. |
| 876 |
Thanks to Anthony Sosso for the feature request. |
| 877 |
- Fix pgbadger help on URI use. |
| 878 |
- Fix broken wildcard use in ssh URI introduced in previous patch. |
| 879 |
Thanks to Tobias Bussmann for the report. |
| 880 |
- Allow URI with space in path to log file. Thanks to Tobias Bussmann |
| 881 |
for the report. |
| 882 |
- Fix URI samples in documentation. Thanks to Tobias Bussmann for the |
| 883 |
patch. |
| 884 |
- Fix t/02_basics.t to don't fail if syslog test takes more than 10s. |
| 885 |
Thanks to Christoph Berg for the patch. |
| 886 |
|
| 887 |
2019-02-14 - v10.3 |
| 888 |
|
| 889 |
This release of pgBadger is a maintenance release that fixes some |
| 890 |
log format autodetection issues another pgBouncer log parsing issue |
| 891 |
reported by users. There is also a new feature: |
| 892 |
|
| 893 |
The -o | --outfile option can now be used multiple time to dump |
| 894 |
output in several format in a single command. For example: |
| 895 |
pgbadger -o out.html -o out.json /log/pgsql-11.log |
| 896 |
will create two reports in html and json format saved in the |
| 897 |
two corresponding files. |
| 898 |
|
| 899 |
There's also some bugs fixes and features enhancements. |
| 900 |
|
| 901 |
- Fix statistics reports when there a filter on database, user, |
| 902 |
client or application is requested. Some queries was not |
| 903 |
reported. |
| 904 |
- Fix autodetection of pg>=10 defauilt log line prefix. |
| 905 |
- Fix autodetection of log file with "non standard" log line prefix. |
| 906 |
If --prefix specify %t, %m, %n and %p or %c, set format to stderr. |
| 907 |
Thanks to Alex Danvy for the report. |
| 908 |
- Remove extra space at end of line. |
| 909 |
- Add minimal test to syslog parser. |
| 910 |
- Fix a call to autodetect_format(). |
| 911 |
- Truncate statement when maxlength is used. Thanks to Thibaud |
| 912 |
Madelaine for the patch. |
| 913 |
- Add test for multiple output format. |
| 914 |
- The -o | --outfile option can now be used multiple time to dump |
| 915 |
output in several format in a single command. For example: |
| 916 |
pgbadger -o out.txt -o out.html -o - -x json /log/pgsql-11.log |
| 917 |
Here pgbadger will create two reports in text and html format |
| 918 |
saved in the two corresponding file. It will also output a json |
| 919 |
report on standard output. Thanks to Nikolay for the feature |
| 920 |
request. |
| 921 |
- Move detection of output format and setting of out filename into |
| 922 |
a dedicated function set_output_extension(). |
| 923 |
- Fix another pgBouncer log parsing issue. Thanks to Douglas J. |
| 924 |
Hunley for the report. |
| 925 |
|
| 926 |
2018-12-27 - v10.2 |
| 927 |
|
| 928 |
This release of pgBadger is a maintenance release that fixes issues |
| 929 |
reported by users during last three months. There is also some new |
| 930 |
features: |
| 931 |
|
| 932 |
* Add support to pgbouncer 1.8 Stats log format. |
| 933 |
* Auto adjust javascript graph timezone. |
| 934 |
|
| 935 |
There is a new command line option: |
| 936 |
|
| 937 |
* Add --exclude-db option to compute report about everything except |
| 938 |
the specified database. |
| 939 |
* Add support to http or ftp remote PostgreSQL log file download. |
| 940 |
The log file is parsed during the download using curl command |
| 941 |
and never saved to disk. With ssh remote log parsing you can use |
| 942 |
uri as command line argument to specify the PostgreSQL log file. |
| 943 |
|
| 944 |
ssh://localhost/postgresql-10-main.log |
| 945 |
http://localhost/postgresql-10-main.log.gz |
| 946 |
ftp://localhost/postgresql-10-main.log |
| 947 |
|
| 948 |
with http and ftp protocol you need to specify the log file format |
| 949 |
at end of the uri: |
| 950 |
|
| 951 |
http://localhost/postgresql-10-main.log:stderr |
| 952 |
|
| 953 |
You can specify multiple uri for log files to be parsed. This is |
| 954 |
useful when you have pgbouncer log file on a remote host and |
| 955 |
PostgreSQL logs in the local host. |
| 956 |
|
| 957 |
With ssh protocol you can use wild card too like with remote |
| 958 |
mode, ex: ssh://localhost/postgresql-10-main.log* |
| 959 |
|
| 960 |
Old syntax to parse remote log file using -r option is still |
| 961 |
working but is obsolete and might be removed in future versions. |
| 962 |
|
| 963 |
|
| 964 |
There's also some bugs fixes and features enhancements. |
| 965 |
|
| 966 |
- Adjust end of progress bar with files with estimate size (bz2 |
| 967 |
compressed files and remote compressed files. |
| 968 |
- Update year in copyright. |
| 969 |
- Add information about URI notation to parse remote log files. |
| 970 |
- Force progress to reach 100% at end of parsing of compressed |
| 971 |
remote file. |
| 972 |
- Extract information about PL/pgSQL function call in queries of |
| 973 |
temporary file reports. The information is append to the details |
| 974 |
display block. |
| 975 |
- Fix progress bar with csv files. |
| 976 |
- Fix reading binary file as input file instead of log file. |
| 977 |
- Encode html output of queries into UTF8 to avoid message "Wide |
| 978 |
character in print". Thanks to Colin 't Hart for the report. |
| 979 |
- Add Checkpoints distance key/value for distance peak. |
| 980 |
- Fix pgbouncer parsing and request throughput reports. Thanks |
| 981 |
to Levente Birta for the report. |
| 982 |
- Fix use of csvlog instead of csv for input format. |
| 983 |
- Add support to pgbouncer 1.8 Stats log format. Thanks to Levente |
| 984 |
Birta for the report. |
| 985 |
- Add warning about parallel processing disabled with csvlog. Thanks |
| 986 |
to cstdenis for the report. |
| 987 |
- Add information in usage output about single process forcing with |
| 988 |
csvlog format in -j and -J options. Thanks to cstdenis for the |
| 989 |
report. |
| 990 |
- Fix unknown line format error for multi line log while incremental |
| 991 |
analysis over ssh. Thanks to Wooyoung Cho for the report. |
| 992 |
- Add -k (--insecure) option to curl command to be able to download |
| 993 |
logs from server using a self signed certificate. |
| 994 |
- Auto adjust javascript graph timezone. Thanks to Massimino Sala |
| 995 |
for the feature request. |
| 996 |
- Add support to HTTP logfile download by pgBadger, for example: |
| 997 |
/usr/bin/pgbadger http://www.mydom.com/postgresql-10.log |
| 998 |
- Will parse the file during download using curl command. |
| 999 |
- Fix documentation. Thanks to 0xflotus for the patch. |
| 1000 |
- Reapply fix on missing replacement of bind parameters after some |
| 1001 |
extra code cleaning. Thanks to Bernhard J. M. Grun for the report. |
| 1002 |
- Add --exclude-db option to compute report about everything except |
| 1003 |
the specified database. The option can be used multiple time. |
| 1004 |
|
| 1005 |
2018-09-12 - v10.1 |
| 1006 |
|
| 1007 |
This release of pgBadger is a maintenance release that fixes reports |
| 1008 |
in incremental mode and multiprocess with -j option. Log parsing from |
| 1009 |
standard input was also broken. If you are using v10.0 please upgrade |
| 1010 |
now. |
| 1011 |
|
| 1012 |
- Add test on pgbouncer log parser. |
| 1013 |
- Some little performances improvment. |
| 1014 |
- Fix not a valid file descriptor at pgbadger line 12314. |
| 1015 |
- Fix unwanted newline in progressbar at startup. |
| 1016 |
- Remove circleci files from the project. |
| 1017 |
- Remove dependency of bats and jq for the test suite, they are |
| 1018 |
replaced with Test::Simple and JSON::XS. |
| 1019 |
- Add more tests especially for incremental mode and input from |
| 1020 |
stdin that was broken in release 10.0. |
| 1021 |
- Sync pgbadger, pod, and README, and fix some syntax errors. |
| 1022 |
Thanks to Christoph Berg for the patch. |
| 1023 |
- Add documentation on how to install Perl module JSON::XS from |
| 1024 |
apt and yum repositories. |
| 1025 |
- Fix URI for CSS in incremental mode. Thanks to Floris van Nee |
| 1026 |
for the report. |
| 1027 |
- Fix fatal error when looking for log from STDIN. Thanks to |
| 1028 |
Jacek Szpot for the report. |
| 1029 |
- Fixes SED use for OSX builds. Thanks to Steve Newson for the |
| 1030 |
patch. |
| 1031 |
- Fix illegal division by zero in incrental mode. Thanks to |
| 1032 |
aleszeleny for the report. |
| 1033 |
- Replace SQL::Beautify with v3.1 of pgFormatter::Beautify. |
| 1034 |
|
| 1035 |
2018-09-09 - v10.0 |
| 1036 |
|
| 1037 |
This release of pgBadger is a major release that adds some new |
| 1038 |
features and fix all issues reported by users since last release. |
| 1039 |
|
| 1040 |
* Add support of pgbouncer syslog log file format. |
| 1041 |
* Add support to all auto_explain format (text, xml, json and yaml). |
| 1042 |
* Add support to %q placeholder in log_line_prefix. |
| 1043 |
* Add jsonlog format of Michael Paquier extension, with -f jsonlog |
| 1044 |
pgbadger will be able to parse the log. |
| 1045 |
* Replace the SQL formatter/beautify with v3.0 of pgFormatter. |
| 1046 |
|
| 1047 |
There is some new command line option: |
| 1048 |
|
| 1049 |
- Add --prettify-json command line option to prettify JSON output. |
| 1050 |
- Add --log-timezone +/-XX command line option to set the number |
| 1051 |
of hours from GMT of the timezone that must be used to adjust |
| 1052 |
date/time read from log file before beeing parsed. Note that you |
| 1053 |
might still need to adjust the graph timezone using -Z when the |
| 1054 |
client has not the same timezone. |
| 1055 |
- Add --include-time option to add the ability to choose times that |
| 1056 |
you want to see, instead of excluding all the times you do not |
| 1057 |
want to see (--exclude-time). |
| 1058 |
|
| 1059 |
The pgBadger project and copyrights has been transfered from Dalibo |
| 1060 |
to the author and official maintainer of the project. Please update |
| 1061 |
your links: |
| 1062 |
|
| 1063 |
- Web site: http://pgbadger.darold.net/ |
| 1064 |
- Source code: https://github.com/darold/pgbadger |
| 1065 |
|
| 1066 |
I want to thanks the great guys at Dalibo for all their investments |
| 1067 |
into pgBadger during these years and especially Damien Clochard and |
| 1068 |
Jean-paul argudo for their help to promote pgBadger. |
| 1069 |
|
| 1070 |
|
| 1071 |
- Fix checkpoint distance and estimate not reported in incremental |
| 1072 |
mode. Thanks to aleszeleny for the report. |
| 1073 |
- Fix title of pgbouncer simultaneous session report. Thansks to |
| 1074 |
Jehan Guillaume De Rorthais for the report. |
| 1075 |
- Add support of pgbouncer syslog log file format. Thanks to djester |
| 1076 |
for the feature request. |
| 1077 |
- Fix error when a remote log is empty. Thanks to Parasit Hendersson |
| 1078 |
for the report. |
| 1079 |
- Fix test with binary format. Binary file must be generated as it |
| 1080 |
is dependent of the plateform. Thanks to Michal Nowak for the |
| 1081 |
report. |
| 1082 |
- Fix case where an empty explain plan is generated. |
| 1083 |
- Fix parsing of autodetected default format with a prefix in |
| 1084 |
command line. |
| 1085 |
- Remove dependency of git command in Makefile.PL. |
| 1086 |
- Update documentation about options changes and remove of the |
| 1087 |
[%l-1] part of the mandatory prefix. |
| 1088 |
- Fix parsing of vacuum / analyze system usage for PostgreSQL 10. |
| 1089 |
Thanks to Achilleas Mantzios for the patch. |
| 1090 |
- Fix Temporary File Activity table. |
| 1091 |
- Remove dependency to git during install. |
| 1092 |
- Add --log-timezone +/-XX command line option to set the number |
| 1093 |
of hours from GMT of the timezone that must be used to adjust |
| 1094 |
date/time read from log file before beeing parsed. Using this |
| 1095 |
option make more difficult log search with a date/time because the |
| 1096 |
time will not be the same in the log. Note that you might still |
| 1097 |
need to adjust the graph timezone using -Z when the client has not |
| 1098 |
the same timezone. Thanks to xdexter for the feature request and |
| 1099 |
Julien Tachoire for the patch. |
| 1100 |
- Add support to auto_explain json output format. Thanks to dmius |
| 1101 |
for the report. |
| 1102 |
- Fix auto_explain parser and queries that was counted twice. |
| 1103 |
Thanks to zam6ak for the report. |
| 1104 |
- Fix checkpoint regex to match PostgreSQL 10 log messages. Thanks |
| 1105 |
to Edmund Horner for the patch. |
| 1106 |
- Update description of -f | --format option by adding information |
| 1107 |
about jsonlog format. |
| 1108 |
- Fix query normalisation to not duplicate with bind queries. |
| 1109 |
Normalisation of values are now tranformed into a single ? and no |
| 1110 |
more 0 for numbers, two single quote for string. Thanks to vadv |
| 1111 |
for the report. |
| 1112 |
- Fix log level count. Thanks to Jean-Christophe Arnu for the report |
| 1113 |
- Make pgbadger more compliant with B::Lint bare sub name. |
| 1114 |
- Made perlcritic happy. |
| 1115 |
- Add --prettify-json command line option to prettify JSON output. |
| 1116 |
Default output is all in single line. |
| 1117 |
- Fix Events distribution report. |
| 1118 |
- Fix bug with --prefix when log_line_prefix contain multiple %%. |
| 1119 |
Thanks to svb007 for the report. |
| 1120 |
- Add --log-timezone +/-XX command line option to set the number |
| 1121 |
of hours from GMT of the timezone that must be used to adjust |
| 1122 |
date/time read from log file before beeing parsed. Using this |
| 1123 |
option make more difficult log search with a date/time because the |
| 1124 |
time will not be the same in the log. Note that you might still |
| 1125 |
need to adjust the graph timezone using -Z when the client has not |
| 1126 |
the same timezone. Thanks to xdexter for the feature request. |
| 1127 |
- Remove INDEXES from the keyword list and add BUFFERS to this list. |
| 1128 |
- Fix normalization of query using cursors. |
| 1129 |
- Remove Dockerfile and documentation about docker run. pgBadger |
| 1130 |
comes as a single Perl script without any dependence and it can |
| 1131 |
be used on any plateform. It is a non sens to use docker to run |
| 1132 |
pgbadger, if you don't want to install anything, just copy the |
| 1133 |
file pgbadger where you want and execute it. |
| 1134 |
- Fix broken grid when no temp files activity. Thanks to Pierre |
| 1135 |
Giraud for the patch |
| 1136 |
- Add doc warning about log_in_duration_statement vs log_duration + |
| 1137 |
log_statement. Thanks to Julien Tachoire for the patch. |
| 1138 |
- Apply timezone offset to bar charts. Thanks to Julien Tachoire |
| 1139 |
for the patch. |
| 1140 |
- Delete current temp file info if we meet an error for the same PID |
| 1141 |
Thanks to Julien Tachoire for the patch. |
| 1142 |
- Consistently use app= in examples, and support appname= |
| 1143 |
Some of the usage examples used appname= in the prefix, but the |
| 1144 |
code didn't recognize that token. Use app= in all examples, and |
| 1145 |
add appname= to the prefix parser. Thanks to Christoph Berg for |
| 1146 |
the patch |
| 1147 |
- Fix wrong long name for option -J that should be --Jobs intead |
| 1148 |
of --job_per_file. Thanks to Chad Trabant for the report and |
| 1149 |
Etienne Bersac for the patch. |
| 1150 |
- Ignore blib files. Thanks to Etienne Bersac for the patch. |
| 1151 |
- Add consistency tests. Thanks to damien clochard for the patch. |
| 1152 |
- doc update : stderr is not a default for -f. Thanks to Christophe |
| 1153 |
Courtois for the patch. |
| 1154 |
- Always update pod and README. Thanks to Etienne Bersac for |
| 1155 |
the patch. |
| 1156 |
- Add some regression tests. Thanks to Etienne Bersac for the patch. |
| 1157 |
- Add editorconfig configuration. Thanks to Etienne Bersac for the |
| 1158 |
patch. |
| 1159 |
- Drop vi temp files from gitignore. Thanks to Etienne Bersac for |
| 1160 |
the patch. |
| 1161 |
- Add --include-time option to add the ability to choose times that |
| 1162 |
you want to see, instead of excluding all the times you do not |
| 1163 |
want to see. This is handy when wanting to view only one or two |
| 1164 |
days from a week's worth of logs (simplifies down from multiple |
| 1165 |
--exlucde-time options to one --include-time). Thanks to Wesley |
| 1166 |
Bowman for the patch. |
| 1167 |
- Check pod syntax. Thanks to Etienne Bersac for the patch. |
| 1168 |
- Add HACKING to document tests. Thanks to Etienne Bersac for the |
| 1169 |
patch. |
| 1170 |
- Drop obsolete --bar-graph option. Thanks to Etienne Bersac for |
| 1171 |
the patch. |
| 1172 |
- Drop misleading .perltidyrc. This file date from 2012 and |
| 1173 |
pgbadger code is far from compliant. perltidy unified diff is |
| 1174 |
10k lines. Let's drop this. Thanks to Etienne Bersac for the |
| 1175 |
patch. |
| 1176 |
- Fix use of uninitialized value in SQL formatting. Thanks to John |
| 1177 |
Krugger for the report and Jean-paul Argudo for the report. |
| 1178 |
|
| 1179 |
2017-07-27 - v9.2 |
| 1180 |
|
| 1181 |
This release of pgBadger is a maintenance release that adds some new |
| 1182 |
features. |
| 1183 |
|
| 1184 |
* Add report of checkpoint distance and estimate. |
| 1185 |
* Add support of AWS Redshift keywords to SQL code beautifier. |
| 1186 |
* Add autodetection of log format in remote mode to allow remote |
| 1187 |
parsing of pgbouncer log file together with PostgreSQL log file. |
| 1188 |
|
| 1189 |
There's also some bugs fixes and features enhancements. |
| 1190 |
|
| 1191 |
- Fix reports with histogram that was not showing data upper than |
| 1192 |
the last range. |
| 1193 |
- Fix parsing of journalctl without the the log line number pattern |
| 1194 |
([%l-n]). Thanks to Christian Schmitt for the report. |
| 1195 |
- Add report of checkpoint distance and estimate. Thanks to jjsantam |
| 1196 |
for the feature request. |
| 1197 |
- Append more information on what is done by script to update CSS |
| 1198 |
and javascript files, tools/updt_embedded_rsc.pl. |
| 1199 |
- Do not warn when all log files are empty and exit with code 0. |
| 1200 |
- Fix build_log_line_prefix_regex() that does not include %n as a |
| 1201 |
lookup in %regex_map. Thanks to ghosthound for the patch. |
| 1202 |
- Change error level of "FATAL: cannot use CSV" to WARNING. Thanks |
| 1203 |
to kong1man for the report. |
| 1204 |
- Fix use of uninitialized value warning. Thanks to Payal for the |
| 1205 |
report. |
| 1206 |
- Add permission denied to error normalization |
| 1207 |
- Update pgbadger to latest commit 5bdc018 of pgFormatter. |
| 1208 |
- Add support for AWS Redshift keywords. Thanks to cavanaug for the |
| 1209 |
feature request. |
| 1210 |
- Fix missing query in temporary file report when the query was |
| 1211 |
canceled. Thanks to Fabrizio de Royes Mello for the report. |
| 1212 |
- Normalize query with binded parameters, replaced with a ?. |
| 1213 |
- Sanity check to avoid end time before start time. Thanks to |
| 1214 |
Christophe Courtois for the patch. |
| 1215 |
- Fix a lot of mystyped words and do some grammatical fixes. Use |
| 1216 |
'pgBadger' where it refers to the program and not the binary file. |
| 1217 |
Also, use "official" expressions such as PgBouncer, GitHub, and |
| 1218 |
CSS. POD file was synced with README. Thanks to Euler Taveira for |
| 1219 |
the patch. |
| 1220 |
- Menu is broken when --disable-type top_cancelled_info test and |
| 1221 |
closing list must be inside disable_type test. While in it, ident |
| 1222 |
disable_lock test. Thanks to Euler Taveira for the patch. |
| 1223 |
- Fix use of uninitialized value. Thanks to johnkrugger for the |
| 1224 |
report. |
| 1225 |
- Remove test to read log file during log format auto-detection when |
| 1226 |
the file is hosted remotly. Thanks to clomdd for the report. |
| 1227 |
- Add autodetection of log format in remote mode to allow remote |
| 1228 |
parsing of pgbouncer log file together with PostgreSQL log file. |
| 1229 |
- Fix number of sessions wrongly increased after log line validation |
| 1230 |
Thanks to Achilleas Mantzios for the report. |
| 1231 |
- Minor reformatting of the pgBadger Description. |
| 1232 |
- Fix repeated info in documentation. Thanks to cscatolini for the patch. |
| 1233 |
|
| 1234 |
2017-01-24 - v9.1 |
| 1235 |
|
| 1236 |
This release of pgBadger is a maintenance release that adds some new |
| 1237 |
features. |
| 1238 |
|
| 1239 |
* Add report of error class distribution when SQLState is available |
| 1240 |
in the log_line_prefix (see %e placeholder). |
| 1241 |
* Update SQL Beautifier to pgFormatter v1.6 code. |
| 1242 |
* Improve error message normalization. |
| 1243 |
* Add --normalized-only option to generate a text file containing all |
| 1244 |
normalized queries found in a log with count. |
| 1245 |
* Allow %c (session id) to replace %p (pid) as unique session id. |
| 1246 |
* Add waiting for lock messages to event reports. |
| 1247 |
* Add --start-monday option to start calendar weeks in Monday |
| 1248 |
instead of default to Sunday. |
| 1249 |
|
| 1250 |
There's also some bugs fixes and features enhancements. |
| 1251 |
|
| 1252 |
- Add report of error class distribution when SQLState is available |
| 1253 |
in the log line prefix. Thanks to jacks33 for the feature request. |
| 1254 |
- Fix incremental global index on resize. Thanks to clomdd for the |
| 1255 |
report. |
| 1256 |
- Fix command tag log_line_prefix placeholder %i to allow space |
| 1257 |
character. |
| 1258 |
- Fix --exclude-line options and removing of obsolete directory |
| 1259 |
when retention is enabled and --noreport is used. |
| 1260 |
- Fix typo in "vacuum activity table". Thanks to Nicolas Gollet for |
| 1261 |
the patch. |
| 1262 |
- Fix autovacuum report. Thanks to Nicolas Gollet for the patch. |
| 1263 |
- Fix author of pgbadger's logo - Damien Cazeils and English in |
| 1264 |
comments. Thanks to Thibaut Madelaine for the patch. |
| 1265 |
- Add information about pgbouncer log format in the -f option. |
| 1266 |
Thanks to clomdd for the report. |
| 1267 |
- Add --normalized-only information in documentation. |
| 1268 |
- Fix broken report of date-time introduced in previous patch. |
| 1269 |
- Fix duration/query association when log_duration=on and |
| 1270 |
log_statement=all. Thanks to Eric Jensen for the report. |
| 1271 |
- Fix normalization of messages about advisory lock. Thanks to |
| 1272 |
Thibaut Madelaine for the report. |
| 1273 |
- Fix report of auto_explain output. Thanks to fch77700 for the |
| 1274 |
report. |
| 1275 |
- Fix unwanted log format auto detection with log entry from stdin. |
| 1276 |
Thanks to Jesus Adolfo Parra for the report. |
| 1277 |
- Add left open parentheses to the "stop" chars of regex to look |
| 1278 |
for db client in the prefix to handle the PostgreSQL client |
| 1279 |
string format that includes source port. Thanks to Jon Nelson |
| 1280 |
for the patch. |
| 1281 |
- Fix some spelling errors. Thanks to Jon Nelson for the patch. |
| 1282 |
- Allow %c (session id) to replace %p (pid) as unique session id. |
| 1283 |
Thanks to Jerryliuk for the report. |
| 1284 |
- Allow pgbadger to parse default log_line_prefix that will be |
| 1285 |
probably used in 10.0: '%m [%p] ' |
| 1286 |
- Fix missing first line with interpreter call. |
| 1287 |
- Fix missing Avg values in CSV report. Thanks to Yosuke Tomita |
| 1288 |
for the report. |
| 1289 |
- Fix error message in autodetect_format() method. |
| 1290 |
- Add --start-monday option to start calendar weeks in Monday |
| 1291 |
instead of default to Sunday. Thanks to Joosep Mae for the feature |
| 1292 |
request. |
| 1293 |
- Fix --histo-average option. Thanks to Yves Martin for the report. |
| 1294 |
- Remove plural form of --ssh-option in documentation. Thanks to |
| 1295 |
mark-a-s for the report. |
| 1296 |
- Fix --exclude-time filter and rewrite code to skip unwanted line |
| 1297 |
as well code to update the progress bar. Thanks to Michael |
| 1298 |
Chesterton for the report. |
| 1299 |
- Fix support to %r placeholder in prefix instead of %h. |
| 1300 |
|
| 1301 |
|
| 1302 |
2016-09-02 - v9.0 |
| 1303 |
|
| 1304 |
This major release of pgBadger is a port to bootstrap 3 and a version |
| 1305 |
upgrade of all resources files (CSS and Javascript). There's also some |
| 1306 |
bugs fixes and features enhancements. |
| 1307 |
|
| 1308 |
Backward compatibility with old incremental report might be preserved. |
| 1309 |
|
| 1310 |
- Sources and licences of resources files are now on a dedicated |
| 1311 |
subdirectory. A script to update their minified version embedded |
| 1312 |
in pgbager script has been added. Thanks to Christoph Berg for |
| 1313 |
the help and feature request. |
| 1314 |
|
| 1315 |
- Try to detect user/database/host from connection strings if |
| 1316 |
log_connection is enabled and log_line_prefix doesn't include |
| 1317 |
them. |
| 1318 |
|
| 1319 |
Extend the regex to autodetect database name, user name, client |
| 1320 |
ip address and application name. The regex now are the following: |
| 1321 |
|
| 1322 |
db => qr/(?:db|database)=([^,]*)/; |
| 1323 |
user => qr/(?:user|usr)=([^,]*)/; |
| 1324 |
client => qr/(?:client|remote|ip|host)=([^,]*)/; |
| 1325 |
appname => qr/(?:app|application)=([^,]*)/; |
| 1326 |
|
| 1327 |
- Add backward compatibility with older version of pgbadger in |
| 1328 |
incremental mode by creating a subdirectory for new CSS and |
| 1329 |
Javascript files. This subdirectory is named with the major |
| 1330 |
version number of pgbadger. |
| 1331 |
|
| 1332 |
- Increase the size of the pgbadger logo that appears too small |
| 1333 |
with the new font size. |
| 1334 |
|
| 1335 |
- Normalize detailed information in all reports. |
| 1336 |
|
| 1337 |
- Fix duplicate copy icon in locks report. |
| 1338 |
|
| 1339 |
- Fix missing chart on histogram of session time. Thanks to |
| 1340 |
Guillaume Lelarge for the report. |
| 1341 |
|
| 1342 |
- Add LICENSE file noting the licenses used by the resource |
| 1343 |
files. Thanks to Christoph Berg for the patch. |
| 1344 |
|
| 1345 |
- Add patch to jqplot library to fix an infinite loop when trying |
| 1346 |
to download some charts. Thanks to Julien Tachoires for the help |
| 1347 |
to solve this issue. |
| 1348 |
|
| 1349 |
- Script tools/updt_embedded_rsc.pl will apply the patch to resource |
| 1350 |
file resources/jquery.jqplot.js and doesn't complain if it has |
| 1351 |
already been applied. |
| 1352 |
|
| 1353 |
- Remove single last comma at end of pie chart dataset. Thanks to |
| 1354 |
Julien Tachoires for the report. |
| 1355 |
|
| 1356 |
- Change display of normalized error |
| 1357 |
|
| 1358 |
- Remove unused or auto-generated files |
| 1359 |
|
| 1360 |
- Update all resources files (js+css) and create a directory to |
| 1361 |
include source of javascript libraries used in pgbadger. There is |
| 1362 |
also a new script tools/updt_embedded_rsc.pl the can be used to |
| 1363 |
generate the minified version of those files and embedded them |
| 1364 |
into pgbadger. This script will also embedded the FontAwesome.otf |
| 1365 |
open truetype font into the fontawesome.css file. |
| 1366 |
|
| 1367 |
|
| 1368 |
2016-08-27 - v8.3 |
| 1369 |
|
| 1370 |
This is a maintenance release that fix some minor bugs. This release |
| 1371 |
also adds replication command messages statistics to the Events |
| 1372 |
reports. |
| 1373 |
|
| 1374 |
- Fix auto-detection of stderr format with timestamp as epoch (%n). |
| 1375 |
- Fix histogram over multiples days to be cumulative per hour, not |
| 1376 |
an average of the number of event per day. |
| 1377 |
- Fix parsing of remote file that was failing when the file does |
| 1378 |
not exists locally. Thanks to clomdd for the report. |
| 1379 |
- Detect timezones like GMT+3 on CSV logs. Thanks to jacksonfoz |
| 1380 |
for the patch. |
| 1381 |
- Add replication command messages statistics to the Events |
| 1382 |
reports. Thanks to Michael Paquier for the feature request. |
| 1383 |
|
| 1384 |
This is the last minor version of the 8.x series, next major version |
| 1385 |
will include an upgrade of boostrap and jquery library which need |
| 1386 |
some major rewrite. |
| 1387 |
|
| 1388 |
2016-08-11 version 8.2 |
| 1389 |
|
| 1390 |
This is a maintenance release that fix some minor bug. There is also |
| 1391 |
some performances improvement up to 20% on huge files and some new |
| 1392 |
interesting features: |
| 1393 |
|
| 1394 |
* Multiprocessing can be used with pgbouncer log files. |
| 1395 |
* pgBouncer and PostgreSQL log files can be used together in |
| 1396 |
incremental mode. |
| 1397 |
* With default or same prefix, stderr and syslog file can be |
| 1398 |
parsed together, csvlog format can always be used. |
| 1399 |
* Use a modal dialog window to download graphs as png images. |
| 1400 |
* Add pl/pgSQL function information to queries when available. |
| 1401 |
|
| 1402 |
Here are the complete list of changes: |
| 1403 |
|
| 1404 |
- Fix report of database system messages. |
| 1405 |
- Fix multi line statement concatenation after an error. |
| 1406 |
- Fix box size for report of queries generating the most |
| 1407 |
temporary files and the most waiting queries. |
| 1408 |
- Rewrite code to better handle multi-line queries. |
| 1409 |
- Fix garbage in examples of event queries with error only mode |
| 1410 |
(option -w). Thanks to Thomas Reiss for the report. |
| 1411 |
- Fix getting dataset related to query duration with the use of |
| 1412 |
auto_explain. Thanks to tom__b for the patch. |
| 1413 |
- Use a modal dialog window to download graphs as png images. |
| 1414 |
- Huge rewrite of the incremental mechanism applied to log files |
| 1415 |
to handle PostgreSQL and pgbouncer logs at the same time. |
| 1416 |
- Multiprocess can be used with pgbouncer log. |
| 1417 |
- Add code to remove remaining keyword placeholders tags. |
| 1418 |
- Fix an other possible case of truncated date in LAST_PARSED file |
| 1419 |
Thanks to brafaeloliveira for the report. |
| 1420 |
- Set default scale 1 in pretty_print_number() js function. |
| 1421 |
- Fix auto-detection of pgbouncer files that contain only stats |
| 1422 |
lines. Thanks to Glyn Astill for the patch. |
| 1423 |
- Add date to samples of queries generating most temporary files. |
| 1424 |
- Do not display warning message of empty log when quiet mode is |
| 1425 |
enable. |
| 1426 |
- Fix reading from stdin by disabling pgbouncer format detection. |
| 1427 |
Thanks to Robert Vargason for the patch. |
| 1428 |
- Fix case of duplicate normalized error message with "nonstandard |
| 1429 |
use of ...". |
| 1430 |
- Fix storage of current temporary file related request. |
| 1431 |
- Use the mnemonic rather than a signal number in kill calls. |
| 1432 |
Thanks to Komeda Shinji for the patch. |
| 1433 |
|
| 1434 |
2016-04-21 version 8.1 |
| 1435 |
|
| 1436 |
This is a maintenance release that fix a major issue introduced with |
| 1437 |
support to pgbouncer that prevent parsing of compressed PostgreSQL |
| 1438 |
log files and adds some improvements. |
| 1439 |
|
| 1440 |
Here are the complete list of changes: |
| 1441 |
|
| 1442 |
- Fix one case where pid file remain after dying. |
| 1443 |
- Add requirement of log_error_verbosity = default to documentation. |
| 1444 |
- Report message "LOG: using stale statistics instead of current |
| 1445 |
ones because stats collector is not responding" in events view. |
| 1446 |
- Remove obsolete days when we are in binary mode with --noreport |
| 1447 |
- Fix wrong report of statements responsible of temporary files. |
| 1448 |
Thanks to Luan Nicolini Marcondes for the report. This patch also |
| 1449 |
exclude line with log level LOCATION to be parsed. |
| 1450 |
- Fix limit on number of sample at report generation and remove |
| 1451 |
pending LAST_PARSED.tmp file. |
| 1452 |
- Update load_stat() function and global variables to support |
| 1453 |
pgbouncer statistics. Update version to 2.0. |
| 1454 |
- Handle more kind or query types. Thanks to julien Rouhaud for |
| 1455 |
the patch. |
| 1456 |
- Fix pgbouncer log parser to handle message: FATAL: the database |
| 1457 |
system is shutting down |
| 1458 |
- Fix whitespace placed in between the E and the quote character. |
| 1459 |
Thanks to clijunky for the report. |
| 1460 |
- Fix a major issue introduced with support to pgbouncer that |
| 1461 |
prevent parsing of compressed PostgreSQL log files. Thanks to |
| 1462 |
Levente Birta for the report. |
| 1463 |
|
| 1464 |
2016-02-22 version 8.0 |
| 1465 |
|
| 1466 |
This is a major release that adds support to pgbouncer log files. |
| 1467 |
New pgbouncer reports are: |
| 1468 |
|
| 1469 |
* Request Throughput |
| 1470 |
* Bytes I/O Throughput |
| 1471 |
* Average Query Duration |
| 1472 |
* Simultaneous sessions |
| 1473 |
* Histogram of sessions times |
| 1474 |
* Sessions per database |
| 1475 |
* Sessions per user |
| 1476 |
* Sessions per host |
| 1477 |
* Established connections |
| 1478 |
* Connections per database |
| 1479 |
* Connections per user |
| 1480 |
* Connections per host |
| 1481 |
* Most used reserved pools |
| 1482 |
* Most Frequent Errors/Events |
| 1483 |
|
| 1484 |
pgbouncer log files can be parsed together with PostgreSQL logs. |
| 1485 |
|
| 1486 |
It also adds a two new command line options: |
| 1487 |
|
| 1488 |
* --pgbouncer-only to only show pgbouncer related reports. |
| 1489 |
* --rebuild to be able to rebuild all html reports in incremental |
| 1490 |
output directory where binary data files are still available. |
| 1491 |
|
| 1492 |
This release fixes a major bug introduced with journalctl code that |
| 1493 |
was prevented the use of multiprocess feature. |
| 1494 |
|
| 1495 |
Here the complete list of other changes: |
| 1496 |
|
| 1497 |
- Fix progress bar with pgbouncer (only events are increased). |
| 1498 |
- Sort %SYMBOLE hashtable for remove "!=" / "=" bug. Thanks to |
| 1499 |
Nicolas Gollet for the patch. |
| 1500 |
- Fix incorrect numbers on positional parameters in report Queries |
| 1501 |
generating most temporary files. Thanks to Oskar Wiksten for the |
| 1502 |
report. |
| 1503 |
- Update operators list in SQL code beautifier with last update in |
| 1504 |
pgFormatter. Thanks to Laurenz Albe for the report and the list |
| 1505 |
of missing operators. |
| 1506 |
- Cosmetic change to code and add some more debug information. |
| 1507 |
|
| 1508 |
|
| 1509 |
2016-01-18 version 7.3 |
| 1510 |
|
| 1511 |
This is a maintenance release to fix a major bug that was breaking |
| 1512 |
the incremental mode in pgBadger. It also adds some more reports and |
| 1513 |
features. |
| 1514 |
|
| 1515 |
* Add --timezone=+/-HH to control the timezone used in charts. The |
| 1516 |
javascript library runs at client side so the timezone used is |
| 1517 |
the browser timezone so the displayed time in the charts can be |
| 1518 |
different from the time in the log file. |
| 1519 |
* Add /tmp/pgbadger.pid file to prevent cron jobs overlaping on |
| 1520 |
same log files. |
| 1521 |
* Add command line option --pid-dir to be able to run two pgbadger |
| 1522 |
at the same time by setting an alternate path to the pid file. |
| 1523 |
* Report information about "LOG: skipping analyze of ..." into |
| 1524 |
events reports. |
| 1525 |
* Report message "LOG: sending cancel to blocking autovacuum" into |
| 1526 |
events reports. Useful to look for queries generating autovacuum |
| 1527 |
kill on account of a lock issue. |
| 1528 |
|
| 1529 |
Here the complete list of changes: |
| 1530 |
|
| 1531 |
- Automatically remove obsolete pid file when there is no other |
| 1532 |
pgbadger process running (unix only) |
| 1533 |
- Update documentation about the --timezone command line option. |
| 1534 |
- Add --timezone=+/-HH to control the timezone used in charts. |
| 1535 |
Thanks to CZAirwolf for the report. |
| 1536 |
- Fix Histogram of session times when there is no data. |
| 1537 |
- Fix unclosed test file. |
| 1538 |
- Fix an other case where pgbadger.pid was not removed. |
| 1539 |
- Always display slides part on connections report even if there |
| 1540 |
is no data. |
| 1541 |
- Fix some label on sessions reports |
| 1542 |
- Add remove of pid file at normal ending. |
| 1543 |
- Fix wrong size/offset of log files that was breaking incremental |
| 1544 |
mode. Thanks a lot to CZAirwolf for the report and the help to |
| 1545 |
find the problem. |
| 1546 |
- Add command line option --pid-dir to be able to run two pgbadger |
| 1547 |
at the same time by setting an alternate path to the directory |
| 1548 |
where the pid file will be written. |
| 1549 |
- Add /tmp/pgbadger.pid file to prevent cron jobs overlaping on same |
| 1550 |
log files. |
| 1551 |
- Report information about "LOG: skipping analyze of ..." into |
| 1552 |
events reports. |
| 1553 |
- Report message "LOG: sending cancel to blocking autovacuum" into |
| 1554 |
events reports. Usefull to know which queries generate autovacuum |
| 1555 |
kill on account of a lock issue. |
| 1556 |
- Add more debug information about check log parsing decision. |
| 1557 |
|
| 1558 |
2016-01-05 version 7.2 |
| 1559 |
|
| 1560 |
This new release fixes some issues especially in temporary files |
| 1561 |
reports and adds some features. |
| 1562 |
|
| 1563 |
* Allow pgBadger to parse natively the journalctl command output |
| 1564 |
* Add new keywords from PG 9.5 for code formating |
| 1565 |
* Add support to %n log_line_prefix option for Unix epoch (PG 9.6) |
| 1566 |
|
| 1567 |
There's also some new command line option: |
| 1568 |
|
| 1569 |
* Adds --journalctl_cmd option to enable this functionality and |
| 1570 |
set the command. Typically: |
| 1571 |
|
| 1572 |
--journalctl_cmd "journalctl -u postgresql-9.4" |
| 1573 |
|
| 1574 |
to parse output of PG 9.4 log |
| 1575 |
|
| 1576 |
Here is the full list of changes/fixes: |
| 1577 |
|
| 1578 |
- Fix missing detailed information (date, db, etc.) in Queries |
| 1579 |
generating the largest temporary files report. |
| 1580 |
- Fix label of sessions histogram. Thanks to Guillaume Lelarge |
| 1581 |
for the patch. |
| 1582 |
- Fix to handle cancelled query that generate more than one |
| 1583 |
temporary file and more generally aggregate size on queries with |
| 1584 |
multiple (> 1GB) temporary files. |
| 1585 |
- Add "Total size" column in Temporary Files Activity table and |
| 1586 |
fix size increment when a query have multiple 1GB temporary file. |
| 1587 |
- Fix temporary file query normalization and examples. |
| 1588 |
- Fix incomplete and wrong queries associated to temporary files |
| 1589 |
when STATEMENT level log line was missing. Thanks to Mael |
| 1590 |
Rimbault for the report. |
| 1591 |
- When -w or --watch-mode is used, message "canceling statement |
| 1592 |
due to statement timeout" s now reported with other errors. |
| 1593 |
- Allow dot in dbname and user name. Thanks to David Turvey for |
| 1594 |
the patch. |
| 1595 |
- Remove use of unmaintained flotr2 javascript chart library and |
| 1596 |
use of jqflot instead. |
| 1597 |
- Fix bad formatting with anonymized values in queries. |
| 1598 |
- Display 0ms instead of 0s when qery time is under the millisecond. |
| 1599 |
Thanks to venkatabn for the report. |
| 1600 |
- Normalize cursor names. Patch from Julien Rouhaud |
| 1601 |
- Fix unregistered client host name with default pattern. Thanks to |
| 1602 |
Eric S. Lucinger Ruiz for the report. |
| 1603 |
- Remove redundant regular expressions. |
| 1604 |
- Tweaking awkward phrasing, correcting subject-verb agreements, |
| 1605 |
typos, and misspellings. Patch from Josh Kupershmid. |
| 1606 |
- Fix potential incorrect creation of subdirectory in incremental mode. |
| 1607 |
- Allow single white space after duration even if this should not appear. |
| 1608 |
- Update copyright. |
| 1609 |
|
| 1610 |
|
| 1611 |
2015-07-11 version 7.1 |
| 1612 |
|
| 1613 |
This new release fixes some issues and adds a new report: |
| 1614 |
|
| 1615 |
* Distribution of sessions per application |
| 1616 |
|
| 1617 |
It also adds Json operators to SQL Beautifier. |
| 1618 |
|
| 1619 |
Here is the full list of changes/fixes: |
| 1620 |
|
| 1621 |
- Fix unwanted seek on old parsing position when log entry is stdin. |
| 1622 |
Thanks to Olivier Schiavo for the report. |
| 1623 |
- Try to fix a potential issue in log start/end date parsing. Thanks |
| 1624 |
to gityerhubhere for the report. |
| 1625 |
- Fix broken queries with multiline in bind parameters. Thank to |
| 1626 |
Nicolas Thauvin for the report. |
| 1627 |
- Add new report Sessions per application. Thanks to Keith Fiske for |
| 1628 |
the feature request. |
| 1629 |
- Add Json Operators to SQL Beautifier. Thanks to Tom Burnett and |
| 1630 |
Hubert depesz Lubaczewski. |
| 1631 |
- Makefile.PL: changed manpage section from '1' to '1p', fixes #237. |
| 1632 |
Thanks to Cyril Bouthors for the patch. |
| 1633 |
- Update Copyright date-range and installation instructions that was |
| 1634 |
still refering to version 5. Thanks to Steve Crawford for the report. |
| 1635 |
- Fix typo in changelog |
| 1636 |
|
| 1637 |
Note that new official releases must now be downloaded from GitHub and no more |
| 1638 |
from SourceForge. Download at https://github.com/dalibo/pgbadger/releases |
| 1639 |
|
| 1640 |
2015-05-08 version 7.0 |
| 1641 |
|
| 1642 |
This major release adds some more useful reports and features. |
| 1643 |
|
| 1644 |
* New report about events distribution per 5 minutes. |
| 1645 |
* New per application details (total duration and times executed) for each |
| 1646 |
query reported in Top Queries reports. The details are visible from a new |
| 1647 |
button called "App(s) involved". |
| 1648 |
* Add support to auto_explain extension. EXPLAIN plan will be added together |
| 1649 |
with top slowest queries when available in log file. |
| 1650 |
* Add a link to automatically open the explain plan on http://explain.depesz.com/ |
| 1651 |
* New report on queries cumulated durations per user. |
| 1652 |
* New report about the Number of cancelled queries (graph) |
| 1653 |
* New report about Queries generating the most cancellation (N) |
| 1654 |
* New report about Queries most cancelled. |
| 1655 |
|
| 1656 |
Here is the full list of changes/fixes: |
| 1657 |
|
| 1658 |
- Update documentation with last reports. |
| 1659 |
- Fix number of event samples displayed in event reports. |
| 1660 |
- Add new report about events distribution per x minutes. |
| 1661 |
- Add app=%a default prefix to documentation. |
| 1662 |
- Add reports of "App(s) involved" with top queries. Thanks to Antti Koivisto |
| 1663 |
for the feature request. |
| 1664 |
- Remove newline between a ) and , in the beautifier. |
| 1665 |
- Add link to automatically open the explain plan on http://explain.depesz.com/ |
| 1666 |
- Add support to auto_explain, EXPLAIN plan will be added together with top |
| 1667 |
slowest queries when available in the log file. |
| 1668 |
- Add a graph on distributed duration per user. Thanks to Korriliam for the |
| 1669 |
patch. |
| 1670 |
- Add tree new report: Number of cancelled queries (graph), Queries generating |
| 1671 |
the most cancellation (N) and Queries most cancelled lists. Thanks to Thomas |
| 1672 |
Reiss for the feature request. |
| 1673 |
- Fix case where temporary file statement must be retrieved from the previous |
| 1674 |
LOG statement and not in the following STATEMENT log entry. Thanks to Mael |
| 1675 |
Rimbault for the report. |
| 1676 |
- Add --enable-checksum to show a md5 hash of each reported queries. Thanks |
| 1677 |
to Thomas Reiss for the feature request. |
| 1678 |
|
| 1679 |
2015-04-13 version 6.4 |
| 1680 |
|
| 1681 |
This new release fixes a major bugs in SQL beautifier which removed operator |
| 1682 |
and adds some useful improvement in anonymization of parameters values. |
| 1683 |
pgBadger will also try to parse the full csvlog when a broken CSV line is |
| 1684 |
encountered. |
| 1685 |
|
| 1686 |
- Make anonymization more useful. Thanks to Hubert depesz Lubaczewski |
| 1687 |
for the patch. |
| 1688 |
- Fix previous patch for csvlog generated with a PostgreSQL version |
| 1689 |
before 9.0. |
| 1690 |
- Try continue CSV parsing after broken CSV line. Thanks to Sergey |
| 1691 |
Burladyan for the patch. |
| 1692 |
- Fix bug in SQL beautifier which removed operator. Thanks to Thomas |
| 1693 |
Reiss for the report. |
| 1694 |
- Fix loop exit, check terminate quickly and correct comments |
| 1695 |
indentation. Thanks to Sergey Burladyan for the patch |
| 1696 |
|
| 1697 |
Please upgrade. |
| 1698 |
|
| 1699 |
2015-03-27 version 6.3 |
| 1700 |
|
| 1701 |
This new release fixes some bugs and adds some new reports: |
| 1702 |
|
| 1703 |
* A new per user details (total duration and times executed) for each query |
| 1704 |
reported in Top Queries reports. The details are visible from a new button |
| 1705 |
called "User(s) involved". |
| 1706 |
* Add "Average queries per session" and "Average queries duration per session" |
| 1707 |
in Sessions tab of the Global statistics. |
| 1708 |
* Add connection time histogram. |
| 1709 |
* Use bar graph for Histogram of query times and sessions times. |
| 1710 |
|
| 1711 |
There's also some cool new features and options: |
| 1712 |
|
| 1713 |
* Add -L | --logfile-list option to read a list of logfiles from an external |
| 1714 |
file. |
| 1715 |
* Add support to log_timezones with + and - signs for timestamp with |
| 1716 |
milliseconds (%m). |
| 1717 |
* Add --noreport option to instruct pgbadger to not build any HTML reports |
| 1718 |
in incremental mode. pgBadger will only create binary files. |
| 1719 |
* Add auto detection of client=%h or remote=%h from the log so that adding |
| 1720 |
a prefix is not needed when it respect the default of pgbadger. |
| 1721 |
* Redefine sessions duration histogram bound to be more accurate. |
| 1722 |
* Add new option -M | --no-multiline to not collect multi-line statement |
| 1723 |
and avoid storing and reporting garbage when needed. |
| 1724 |
* Add --log-duration option to force pgbadger to associate log entries |
| 1725 |
generated by both log_duration=on and log_statement=all. |
| 1726 |
|
| 1727 |
The pgbadger_tools script have also been improve with new features: |
| 1728 |
|
| 1729 |
* Add a new tool to pgbadger_tool to output top queries in CSV format for |
| 1730 |
follow-up analysis. |
| 1731 |
* Add --explain-time-consuming and --explain-normalized options to generate |
| 1732 |
explain statement about top time consuming and top normalized slowest |
| 1733 |
queries. |
| 1734 |
|
| 1735 |
Here is the full list of changes/fixes: |
| 1736 |
|
| 1737 |
- Update flotr2.min.js to latest github code. |
| 1738 |
- Add per user detail information (total duration and times executed) |
| 1739 |
for each query reported in "Time consuming queries", "Most frequent |
| 1740 |
queries" "and Normalized slowest queries". The details are visible |
| 1741 |
from a new button called "User(s) involved" near the "Examples" |
| 1742 |
button. Thanks to Guillaume Le Bihan for the patch and tsn77130 for |
| 1743 |
the feature request. |
| 1744 |
- pgbadger_tool: add tool to output top queries to CSV format, for |
| 1745 |
follow-up analysis. Thanks to briklen for the patch. |
| 1746 |
- Add geometric operators to SQL beautifier. Thanks to Rodolphe |
| 1747 |
Quiedeville for the report. |
| 1748 |
- Fix non closing session when a process crash with message: |
| 1749 |
"terminating connection because of crash of another server process". |
| 1750 |
Thanks to Mael Rimbault for the report. |
| 1751 |
- Add -L|--logfile-list command line option to read a list of logfiles |
| 1752 |
from a file. Thanks to Hubert depesz Lubaczewski for the feature |
| 1753 |
request. |
| 1754 |
- Automatically remove %q from prefix. Thanks to mbecroft for report. |
| 1755 |
- Do not store DEALLOCATE log entries anymore. |
| 1756 |
- Fix queries histogram where range was not appears in the right order. |
| 1757 |
Thanks to Grzegorz Garlewicz for the report. |
| 1758 |
- Fix min yaxis in histogram graph. Thanks to grzeg1 for the patch. |
| 1759 |
- Add --log-duration command line option to force pgbadger to associate |
| 1760 |
log entries generated by both log_duration = on and log_statement=all. |
| 1761 |
Thanks to grzeg1 for the feature request. |
| 1762 |
- Small typographical corrections. Thanks to Jefferson Queiroz Venerando |
| 1763 |
and Bill Mitchell the patches. |
| 1764 |
- Reformat usage output and add explanation of the --noreport command |
| 1765 |
line option. |
| 1766 |
- Fix documentation about minimal pattern in custom log format. Thanks |
| 1767 |
to Julien Rouhaud for the suggestion. |
| 1768 |
- Add support to log_timezones with + and - signs to timestamp with |
| 1769 |
milliseconds (%m). Thanks to jacksonfoz for the patch. |
| 1770 |
pgbadger was not recognize log files with timezones like 'GMT+3'. |
| 1771 |
- Add --noreport command line option to instruct pgbadger to not build |
| 1772 |
any reports in incremental mode. pgBadger will only create binary |
| 1773 |
files. Thanks to hubert Depesz Lubaczewski for the feature request. |
| 1774 |
- Add time consuming information in tables of Queries per database... |
| 1775 |
Thanks to Thomas for the feature request. |
| 1776 |
- Add more details about the CSV parser error. It now prints the line |
| 1777 |
number and the last parameter that generate the failure. This should |
| 1778 |
allow to see the malformed log entry. |
| 1779 |
- Change substitution markup in attempt to fix a new look-behind |
| 1780 |
assertions error. Thanks to Paolo Cavallini for the report. |
| 1781 |
- Use bar graph for Histogram of query times and sessions times. |
| 1782 |
- Fix wrong count of min/max queries per second. Thanks to Guillaume |
| 1783 |
Lelarge for the report. Add COPY statement to SELECT or INSERT |
| 1784 |
statements statistics following the copy direction (stdin or stdout). |
| 1785 |
- Fix Illegal division by zero at line 3832. Thanks to MarcoTrek for |
| 1786 |
the report. |
| 1787 |
- Add "Average queries per session" and "Average queries duration per |
| 1788 |
session" in Sessions tab of the Global stat. Thanks to Guillaume |
| 1789 |
Lelarge for the feature request. |
| 1790 |
- Reformat numbers in pie graph tracker. Thanks to jirihlinka for the |
| 1791 |
report. |
| 1792 |
- pgbadger_tools: Add --explain-time-consuming and --explain-normalized |
| 1793 |
to generate explain statement about top time consuming and top |
| 1794 |
normalized slowest queries. Thanks to Josh Kupershmid fot the feature |
| 1795 |
request. |
| 1796 |
- Remove everything than error information from json output when -w | |
| 1797 |
--watch-mode is enable. Thanks to jason. |
| 1798 |
- Fix undefined subroutine encode_json when using -x json. Thanks to |
| 1799 |
jason for the report. |
| 1800 |
- Add auto detection of client=%h or remote=%h from the log so that |
| 1801 |
adding a prefix is not needed when it respect the default of pgbadger. |
| 1802 |
- Redefine sessions duration histogram bound to be more accurate. Thanks |
| 1803 |
to Guillaume Lelarge for the report. |
| 1804 |
- Add connection time histogram. Thanks to Guillaume Lelarge for the |
| 1805 |
feature request. |
| 1806 |
- Add new option -M | --no-multiline to not collect multi-line statement |
| 1807 |
to avoid garbage especially on errors that generate a huge report. |
| 1808 |
- Do not return SUCCESS error code 0 when aborted or something fails. |
| 1809 |
Thanks to Bruno Almeida for the patch. |
| 1810 |
|
| 1811 |
2014-10-07 version 6.2 |
| 1812 |
|
| 1813 |
This is a maintenance release to fix a regression in SQL traffic graphs and |
| 1814 |
fix some other minor issues. |
| 1815 |
|
| 1816 |
The release also add a new option -D or --dns-resolv to map client ip addresses |
| 1817 |
to FQDN without having log_hostname enabled on the postgresql's configuration |
| 1818 |
|
| 1819 |
- Do not display queries in Slowest individual, Time consuming and |
| 1820 |
Normalized slowest queries reports when there is no duration in |
| 1821 |
log file. Display NO DATASET instead. |
| 1822 |
- Fix min/max queries in SQL traffic that was based on duration instead |
| 1823 |
of query count. |
| 1824 |
- Fix wrong unit to Synced files in Checkpoints files report. Thanks |
| 1825 |
to Levente Birta for the report. |
| 1826 |
- Enable allow_loose_quotes in Text::CSV_XS call to fix CSV parsing |
| 1827 |
error when fields have quote inside an unquoted field. Thanks to |
| 1828 |
Josh Berkus for the report. |
| 1829 |
- Add -D | --dns-resolv command line option to replace ip addresses |
| 1830 |
by their DNS name. Be warned that this can slow down pgBagder a lot. |
| 1831 |
Thanks to Jiri Hlinka for the feature request. |
| 1832 |
|
| 1833 |
2014-09-25 version 6.1 |
| 1834 |
|
| 1835 |
This release fix some issues and adds some new features. It adds a new option |
| 1836 |
-B or --bar-graph to use bar instead of line in graphs. It will also keep tick |
| 1837 |
formatting when zooming. |
| 1838 |
|
| 1839 |
The release also add a new program: pgbadger_tools to demonstrate how to |
| 1840 |
works with pgBadger binary files to build your own new feature. The first |
| 1841 |
tools 'explain-slowest' allow printing of top slowest queries as EXPLAIN |
| 1842 |
statements. There's also additional options to execute automatically the |
| 1843 |
statements with EXPLAIN ANALYZE and get the execution plan. See help of the |
| 1844 |
program for more information or the README file in the tools directory. |
| 1845 |
|
| 1846 |
Some modifications will change certain behavior: |
| 1847 |
|
| 1848 |
- The -T | --title text value will now be displayed instead of the |
| 1849 |
pgBadger label right after the logo. It was previously displayed |
| 1850 |
on mouse over the pgBadger label. |
| 1851 |
|
| 1852 |
Here is the full list of changes/fixes: |
| 1853 |
|
| 1854 |
- Change -T | --title position on pgBadger report. Title now override |
| 1855 |
the pgBadger label. Thanks to Julien Rouhauld for the patch. |
| 1856 |
- Add --file-per-query and --format-query option to write each slowest |
| 1857 |
query in separate file named qryXXX.sql and perform minimal formating |
| 1858 |
of the queries. Thanks to Rodolphe Quiedeville for the patch. |
| 1859 |
- Remove debug query from explain-slowest tool. |
| 1860 |
- Fix surge in sessions number report when an exclusion or inclusion |
| 1861 |
option (dbname, user, appname, etc.) is used. Thanks to suyah for the |
| 1862 |
report. |
| 1863 |
- Fix fatal error when remote log file is 0 size. Thanks to Julien |
| 1864 |
Rouhaud for the report. |
| 1865 |
- Allow pgbadger_tools --explain-slowest to automatically execute the |
| 1866 |
EXPLAIN statements an report the plan. See pgbadger_tools --help for |
| 1867 |
more explanation. |
| 1868 |
- Add --analyze option to replace EXPLAIN statements by EXPLAIN |
| 1869 |
(ANALYZE, VERBOSE, BUFFERS). |
| 1870 |
- Move pgbadger_tools program and README.tools into the tools/ |
| 1871 |
subdirectory with removing the extension. Add more comments and |
| 1872 |
explanations. |
| 1873 |
- Fix case where die with interrupt signal is received when using -e |
| 1874 |
option. Thanks to Lloyd Albin for the report. |
| 1875 |
- Add a new program pgbadger_tools to demonstrate how to deal with |
| 1876 |
pgBadger binary files to build your own new feature. The first one |
| 1877 |
'explain-slowest' allow printing of top slowest queries as EXPLAIN |
| 1878 |
statements. |
| 1879 |
- Keep tick formatting when zooming. Thanks to Julien Rouhaud for the |
| 1880 |
patch. |
| 1881 |
- Fix automatic detection of rsyslogd logs. Thanks to David Day for |
| 1882 |
the report. |
| 1883 |
- Fix issue in calculating min/max/avg in "General Activity" report. It |
| 1884 |
was build on the sum of queries duration per minutes instead of each |
| 1885 |
duration. Thanks to Jayadevan M for the report. |
| 1886 |
- The same issue remains with percentile that are build using the sum of |
| 1887 |
duration per minutes and doesn't represent the real queries duration. |
| 1888 |
- This commit also include a modification in convert_time() method to |
| 1889 |
reports milliseconds. |
| 1890 |
- Add -B or --bar-graph command line option to use bar instead of line |
| 1891 |
in graph. Thanks to Bart Dopheide for the suggestion. |
| 1892 |
- Fix Checkpoint Wal files usage graph title. |
| 1893 |
|
| 1894 |
2014-08-08 version 6.0 |
| 1895 |
|
| 1896 |
This new major release adds some new features like automatic cleanup of binary |
| 1897 |
files in incremental mode or maximum number of weeks for reports retention. |
| 1898 |
It improve the incremental mode with allowing the use of multiprocessing with |
| 1899 |
multiple log file. |
| 1900 |
|
| 1901 |
It also adds report of query latency percentile on the general activity table |
| 1902 |
(percentiles are 90, 95, 99). |
| 1903 |
|
| 1904 |
There's also a new output format: JSON. This format is good for sharing data |
| 1905 |
with other languages, which makes it easy to integrate pgBadger's result into |
| 1906 |
other monitoring tools. |
| 1907 |
|
| 1908 |
You may want to expose your reports but not the data, using the --anonymize |
| 1909 |
option pgBadger will be able to anonymize all literal values in the queries. |
| 1910 |
|
| 1911 |
Sometime select to copy a query from the report could be a pain. There's now |
| 1912 |
a click-to-select button in front of each query that allow you to just use |
| 1913 |
Ctrl+C to copy it on clipboard |
| 1914 |
|
| 1915 |
The use of the new -X option also allow pgBadger to write out extra files to |
| 1916 |
the outdir when creating incremental reports. Those files are the CSS and |
| 1917 |
Javascript code normally repeated in each HTLM files. |
| 1918 |
|
| 1919 |
Warning: the behavior of pgBadger in incremental mode has changed. It will now |
| 1920 |
always cleanup the output directory of all the obsolete binary file. If you were |
| 1921 |
using those files to build your own reports, you can prevent pgBadger to remove |
| 1922 |
them by using the --noclean option. Note that if you use the retention feature, |
| 1923 |
all those files in obsolete directories will be removed too. |
| 1924 |
|
| 1925 |
Here is the complete list of changes. |
| 1926 |
|
| 1927 |
|
| 1928 |
- Javascript improvement to use only one call of sql_select and |
| 1929 |
sql_format. Use jQuery selector instead of getElementById to |
| 1930 |
avoid js errors when not found. Thanks to Julien Rouhaud for the |
| 1931 |
patches. |
| 1932 |
- Add -R | --retention command line option to set the maximum number of |
| 1933 |
week reports to preserve in the output directory for incremental mode. |
| 1934 |
Thanks to Kong Man for the feature request. |
| 1935 |
- Session count is immediately decreased when a FATAL error is received |
| 1936 |
in the current session to prevent overcount of simultaneous session |
| 1937 |
number. Thanks to Josh Berkus for the report. |
| 1938 |
- Fix issue in incremental mode when parsing is stopped after rotating |
| 1939 |
log and rotated log has new lines. The new file was not parsed at all. |
| 1940 |
Thanks to CZAirwolf for the report. |
| 1941 |
- Fix revert to single thread when last_line_parsed exists. Thanks to |
| 1942 |
Bruno Almeida for the report. |
| 1943 |
- Fix issue in handling SIGTERM/SIGINT that cause pgbadger to continue. |
| 1944 |
- Add autoclean feature to pgbadger in incremental mode. pgbadger will |
| 1945 |
now removed automatically obsolete binary files unless you specify |
| 1946 |
--noclean at command line. |
| 1947 |
- Add new command line option --anonymize to obscure all literals in |
| 1948 |
queries/errors to hide confidential data. Thanks to wmorancfi for the |
| 1949 |
feature request. |
| 1950 |
- Fix single "SELECT;" as a query in a report. Thanks to Marc Cousin for |
| 1951 |
the report. |
| 1952 |
- Add a copy icon in front of each query in the report to select the |
| 1953 |
entire query. Thanks to Josh Berkus for the feature request. |
| 1954 |
- Fix wrong move to beginning of a file if the file was modified after |
| 1955 |
have been parsed a time. Thanks to Herve Werner for the report. |
| 1956 |
- Allow pgBadger to write out extra files to outdir when creating |
| 1957 |
incremental reports. Require the use of the -X or --extra-files option |
| 1958 |
in incremental mode. Thanks to Matthew Musgrove for the feature request. |
| 1959 |
- Fix incomplete handling of XZ compressed format. |
| 1960 |
- Fix move to offset in incremental mode with multiprocess and incomplete |
| 1961 |
condition when file is smaller than the last offset. Thanks to Herve |
| 1962 |
Werner for the report. |
| 1963 |
- Allow/improve incremental mode with multiple log file and multiprocess. |
| 1964 |
- Fix incorrect location of temporary file storing last parsed line in |
| 1965 |
multiprocess+incremental mode. Thanks to Herve Werner for the report. |
| 1966 |
- Fix remote ssh command error sh: 2: Syntax error: "|" unexpected. |
| 1967 |
Thanks to Herve Werner for the report. |
| 1968 |
- Fix missing database name in samples of top queries reports. Thanks to |
| 1969 |
Thomas Reiss for the report. |
| 1970 |
- Add minimal documentation about JSON output format. |
| 1971 |
- Add execute attribute to pgbadger in the source repository, some may |
| 1972 |
find this more helpful when pgbadger is not installed and executed |
| 1973 |
directly from this repository. |
| 1974 |
- Fix issue with csv log format and incremental mode. Thanks to Suya for |
| 1975 |
the report and the help to solve the issue. There also a fix to support |
| 1976 |
autovacuum statistic with csv format. |
| 1977 |
- Fix bad URL to documentation. Thanks to Rodolphe Quiedeville for the report. |
| 1978 |
- Two minor change to made easier to use Tsung scenario: Remove the first |
| 1979 |
empty line and replace probability by weight. Now it is possible to use |
| 1980 |
the scenario as is with Tsung 1.5. |
| 1981 |
- Fix incremental mode where weeks on index page start on sunday and week |
| 1982 |
reports start on monday. Thanks to flopma and birkosan for the report. |
| 1983 |
- Replace label "More CPU costly" by "Highest CPU-cost". Thanks to Marc |
| 1984 |
Cousin for the suggestion. |
| 1985 |
- Add query latency percentile to General Activity table (percentiles are |
| 1986 |
90, 95, 99). Thanks to Himanchali for the patch. |
| 1987 |
- Fix typon pgbadger call. Thanks to Guilhem Rambal for the report. |
| 1988 |
- Add JSON support for output format. JSON format is good for sharing data |
| 1989 |
with other languages, which makes it easy to integrate pgBadger's result |
| 1990 |
into other monitoring tools like Cacti or Graphite. Thanks to Shanzhang |
| 1991 |
Lan for the patch. |
| 1992 |
- Update documentation about remote mode feature. |
| 1993 |
- Update documentation to inform that the xz utility should be at least in |
| 1994 |
version 5.05 to support the --robot command line option. Thanks to Xavier |
| 1995 |
Millies-Lacroix for the report. |
| 1996 |
- Fix remote logfile parsing. Thanks to Herve Werner for the report. |
| 1997 |
|
| 1998 |
2014-05-05 version 5.1-1 |
| 1999 |
|
| 2000 |
- Fix parsing of remote log file, forgot to apply some patches. |
| 2001 |
Thank to Herve Werner for the report. |
| 2002 |
|
| 2003 |
2014-05-04 version 5.1 |
| 2004 |
|
| 2005 |
This new release fixes several issues and adds several new features like: |
| 2006 |
|
| 2007 |
* Support to named PREPARE and EXECUTE queries. They are replaced by |
| 2008 |
the real prepare statement and reported into top queries. |
| 2009 |
* Add new --exclude-line command line option for excluding immediately |
| 2010 |
log entries matching any regex. |
| 2011 |
* Included remote and client information into the most frequent events. |
| 2012 |
* pgBadger is now able to parse remote logfiles using a password less |
| 2013 |
ssh connection and generate locally the reports. |
| 2014 |
* Histogram granularity can be adjusted using the -A command line option. |
| 2015 |
* Add new detail information on top queries to show when the query is a |
| 2016 |
bind query. |
| 2017 |
* Support to logfile compressed using the xz compression format. |
| 2018 |
* Change week/day menu in incremental index, it is now represented as |
| 2019 |
usual with a calendar view per month. |
| 2020 |
* Fix various compatibility issue with Windows and Perl 5.8 |
| 2021 |
|
| 2022 |
Here is the full list of changes: |
| 2023 |
|
| 2024 |
- fixed calendar display and correct typo. Thanks to brunomgalmeida |
| 2025 |
for the patch. |
| 2026 |
- revert to single thread if file is small. Thanks to brunomgalmeida |
| 2027 |
for the patch. |
| 2028 |
- print calendars 4+4+4 instead of 3+4+4+1 when looking at full year. |
| 2029 |
Thanks to brunomgalmeida for the patch. |
| 2030 |
- Add --exclude-line option for excluding log entries with a regex based |
| 2031 |
on the full log line. Thanks to ferfebles for the feature request. |
| 2032 |
- Fix SQL keywords that was beautified twice. |
| 2033 |
- Remove duplicate pg_keyword in SQL beautifier. |
| 2034 |
- Fix increment of session when --disable-session is activated. |
| 2035 |
- Fix missing unit in Checkpoints Activity report when time value is |
| 2036 |
empty. Thanks to Herve Werner for the report. |
| 2037 |
- Fix double information in histogram data when period is the hour. |
| 2038 |
- Add support to named PREPARE and EXECUTE queries. Calls to EXECUTE |
| 2039 |
statements are now replaced by the prepared query and show samples |
| 2040 |
with parameters. Thanks to Brian DeRocher for the feature request. |
| 2041 |
- Included Remote and Client information into the most frequent events |
| 2042 |
examples. Thanks to brunomgalmeida for the patch. |
| 2043 |
- Fix documentation about various awkward phrasings, grammar, and |
| 2044 |
spelling. Consistently capitalize "pgBadger" as such, except for |
| 2045 |
command examples which should stay all-lowercase. Thanks to Josh |
| 2046 |
Kupershmidt for the patch. |
| 2047 |
- Fix incremental mode on Windows by replacing %F and %u POSIX::strftime |
| 2048 |
format to %Y-%m-%d and %w. Thanks to dthiery for the report. |
| 2049 |
- Remove Examples button when there is no examples available. |
| 2050 |
- Fix label on tips in histogram of errors reports. |
| 2051 |
- Fix error details in incremental mode in Most Frequent Errors/Events |
| 2052 |
report. Thanks to Herve Werner for the report. |
| 2053 |
- Fix Sync time value in Checkpoints buffers report. Thanks to Herve |
| 2054 |
Werner for the report. |
| 2055 |
- Fix wrong connections per host count. Thanks to Herve Werner for the |
| 2056 |
report. |
| 2057 |
- Allow pgBadger to parse remote log file using a password less ssh |
| 2058 |
connection. Thanks to Orange OLPS department for the feature request. |
| 2059 |
- Histogram granularity can be adjusted using the -A command line |
| 2060 |
option. By default they will report the mean of each top queries or |
| 2061 |
errors occurring per hour. You can now specify the granularity down to |
| 2062 |
the minute. Thanks to Orange OLPS department for the feature request. |
| 2063 |
- Add new detail information on top queries to show when the query is |
| 2064 |
a bind query. Thanks to Orange OLPS department for the feature request. |
| 2065 |
- Fix queries that exceed the size of the container. |
| 2066 |
- Add unit (seconds) to checkpoint write/sync time in the checkpoints |
| 2067 |
activity report. Thanks to Orange OLPS department for the report. |
| 2068 |
- Fix missing -J option in usage. |
| 2069 |
- Fix incomplete lines in split logfile to rewind to the beginning of |
| 2070 |
the line. Thanks to brunomgalmeida for the patch. |
| 2071 |
- Fix tsung output and add tsung xml header sample to output file. |
| 2072 |
- Make it possible to do --sample 0 (prior it was falling back to the |
| 2073 |
default of 3). Thanks to William Moran for the patch. |
| 2074 |
- Fix xz command to be script readable and always have size in bytes: |
| 2075 |
xz --robot -l %f | grep totals | awk "{print $5}" |
| 2076 |
- Add support to logfile compressed by the xz compression format. |
| 2077 |
Thanks to Adrien Nayrat for the patch. |
| 2078 |
- Do not increment queries duration histogram when prepare|parse|bind |
| 2079 |
log are found, but only with execute log. Thanks to Josh Berkus for |
| 2080 |
the report. |
| 2081 |
- Fix normalization of error message about unique violation when |
| 2082 |
creating intermediate dirs. Thanks to Tim Sampson for the report. |
| 2083 |
- Allow use of Perl metacharacters like [..] in application name. |
| 2084 |
Thanks to Magnus Persson for the report. |
| 2085 |
- Fix dataset tip to be displayed above image control button. Thanks |
| 2086 |
to Ronan Dunklau for the fix. |
| 2087 |
- Renamed the Reset bouton to "To Chart" to avoid confusion with unzoom |
| 2088 |
feature. |
| 2089 |
- Fix writing of empty incremental last parsed file. |
| 2090 |
- Fix several other graphs |
| 2091 |
- Fix additional message at end of query or error when it was logged |
| 2092 |
from application output. Thanks to Herve Werner for the report. |
| 2093 |
- Fix checkpoint and vacuum graphs when all dataset does not have all |
| 2094 |
values. Thanks to Herve Werner for the report. |
| 2095 |
- Fix week numbered -1 in calendar view. |
| 2096 |
- Change week/day menu in incremental index, it is now represented as |
| 2097 |
usual with a calendar view per month. Thanks to Thom Brown for the |
| 2098 |
feature request. |
| 2099 |
- Load FileHandle to fix error: Can not locate object method "seek" |
| 2100 |
via package "IO::Handle" with perl 5.8. Thanks to hkrizek for the |
| 2101 |
report. |
| 2102 |
- Fix count of queries in progress bar when there is compressed file |
| 2103 |
and multiprocess is enabled. Thanks to Johnny Tan for the report. |
| 2104 |
- Fix debug message "Start parsing at offset" |
| 2105 |
- Add ordering in queries times histogram. Thanks to Ulf Renman for |
| 2106 |
the report. |
| 2107 |
- Fix various typos. Thanks to Thom Brown for the patch. |
| 2108 |
- Fix Makefile error, "WriteMakefile: Need even number of args at |
| 2109 |
Makefile.PL" with Perl 5.8. Thanks to Fangr Zhang for the report. |
| 2110 |
- Fix some typo in Changelog |
| 2111 |
|
| 2112 |
2014-02-05 version 5.0 |
| 2113 |
|
| 2114 |
This new major release adds some new features like incremental mode and SQL |
| 2115 |
queries times histogram. There is also a hourly graphic representation of the |
| 2116 |
count and average duration of top normalized queries. Same for errors or events, |
| 2117 |
you will be able to see graphically at which hours they are occurring the most |
| 2118 |
often. |
| 2119 |
|
| 2120 |
The incremental mode is an old request issued at PgCon Ottawa 2012 that concern |
| 2121 |
the ability to construct incremental reports with successive runs of pgBadger. |
| 2122 |
It is now possible to run pgbadger each days or even more, each hours, and have |
| 2123 |
cumulative reports per day and per week. A top index page allow you to go |
| 2124 |
directly to the weekly and daily reports. |
| 2125 |
|
| 2126 |
This mode have been build with simplicity in mind so running pgbadger by cron |
| 2127 |
as follow: |
| 2128 |
|
| 2129 |
0 23 * * * pgbadger -q -I -O /var/www/pgbadger/ /var/log/postgresql.log |
| 2130 |
|
| 2131 |
is enough to have daily and weekly reports viewable using your browser. |
| 2132 |
|
| 2133 |
You can take a look at a sample report at http://dalibo.github.io/pgbadger/demov5/index.html |
| 2134 |
|
| 2135 |
There's also a useful improvement to allow pgBadger to seek directly to the |
| 2136 |
last position in the same log file after a successive execution. This feature |
| 2137 |
is only available using the incremental mode or the -l option and parsing a |
| 2138 |
single log file. Let's say you have a weekly rotated log file and want to run |
| 2139 |
pgBadger each days. With 2GB of log per day, pgbadger was spending 5 minutes |
| 2140 |
per block of 2 GB to reach the last position in the log, so at the end of the |
| 2141 |
week this feature will save you 35 minutes. Now pgBadger will start parsing |
| 2142 |
new log entries immediately. This feature is compatible with the multiprocess |
| 2143 |
mode using -j option (n processes for one log file). |
| 2144 |
|
| 2145 |
Histogram of query times is a new report in top queries slide that shows the |
| 2146 |
query times distribution during the analyzed period. For example: |
| 2147 |
|
| 2148 |
Range Count Percentage |
| 2149 |
-------------------------------------------- |
| 2150 |
0-1ms 10,367,313 53.52% |
| 2151 |
1-5ms 799,883 4.13% |
| 2152 |
5-10ms 451,646 2.33% |
| 2153 |
10-25ms 2,965,883 15.31% |
| 2154 |
25-50ms 4,510,258 23.28% |
| 2155 |
50-100ms 180,975 0.93% |
| 2156 |
100-500ms 87,613 0.45% |
| 2157 |
500-1000ms 5,856 0.03% |
| 2158 |
1000-10000ms 2,697 0.01% |
| 2159 |
> 10000ms 74 0.00% |
| 2160 |
|
| 2161 |
|
| 2162 |
There is also some graphic and report improvements, like the mouse tracker |
| 2163 |
formatting that have been reviewed. It now shows a vertical crosshair and |
| 2164 |
all dataset values at a time when mouse pointer moves over series. Automatic |
| 2165 |
queries formatting has also been changed, it is now done on double click |
| 2166 |
event as simple click was painful when you want to copy some part of the |
| 2167 |
queries. |
| 2168 |
|
| 2169 |
The report "Simultaneous Connections" has been relabeled into "Established |
| 2170 |
Connections", it is less confusing as many people think that this is the number |
| 2171 |
of simultaneous sessions, which is not the case. It only count the number of |
| 2172 |
connections established at same time. |
| 2173 |
|
| 2174 |
Autovacuum reports now associate database name to the autovacuum and autoanalyze |
| 2175 |
entries. Statistics now refer to "dbname.schema.table", previous versions was only |
| 2176 |
showing the pair "schema.table". |
| 2177 |
|
| 2178 |
This release also adds Session peak information and a report about Simultaneous |
| 2179 |
sessions. Parameters log_connections and log_disconnections must be enabled in |
| 2180 |
postgresql.conf. |
| 2181 |
|
| 2182 |
Complete ChangeLog: |
| 2183 |
|
| 2184 |
- Fix size of SQL queries columns to prevent exceeding screen width. |
| 2185 |
- Add new histogram reports on top normalized queries and top errors |
| 2186 |
or event. It shows at what hours and in which quantity the queries |
| 2187 |
or errors appears. |
| 2188 |
- Add seeking to last parser position in log file in incremental mode. |
| 2189 |
This prevent parsing all the file to find the last line parse from |
| 2190 |
previous run. This only works when parsing a single flat file, -j |
| 2191 |
option is permitted. Thanks to ioguix for the kick. |
| 2192 |
- Rewrite reloading of last log time from binary files. |
| 2193 |
- Fix missing statistics of last parsed queries in incremental mode. |
| 2194 |
- Fix bug in incremental mode that prevent reindexing a previous day. |
| 2195 |
Thanks to Martin Prochazka for the great help. |
| 2196 |
- Fix missing label "Avg duration" on column header in details of Most |
| 2197 |
frequent queries (N). |
| 2198 |
- Add vertical crosshair on graph. |
| 2199 |
- Fix case where queries and events was not updated when using -b and |
| 2200 |
-e command line. Thanks to Nicolas Thauvin for the report. |
| 2201 |
- Fix week sorting on incremental report main index page. Thanks to |
| 2202 |
Martin Prochazka for the report. |
| 2203 |
- Add "Histogram of query times" report to show statistics like |
| 2204 |
0-100ms : 80%, 100-500ms :14%, 500-1000ms : 3%, > 1000ms : 1%. |
| 2205 |
Thanks to tmihail for the feature request. |
| 2206 |
- Format mouse tracker on graphs to show all dataset value at a time. |
| 2207 |
- Add control of -o vs -O option with incremental mode to prevent |
| 2208 |
wrong use. |
| 2209 |
- Change log level of missing LAST_PARSED.tmp file to WARNING and |
| 2210 |
add a HINT. |
| 2211 |
- Update copyright date to 2014 |
| 2212 |
- Fix empty reports of connections. Thanks to Reeshna Ramakrishnan |
| 2213 |
for the report. |
| 2214 |
- Fix display of connections peak when no connection was reported. |
| 2215 |
- Fix warning on META_MERGE for ExtUtils::MakeMaker < 6.46. Thanks |
| 2216 |
to Julien Rouhaud for the patch. |
| 2217 |
- Add documentation about automatic incremental mode. |
| 2218 |
- Add incremental mode to pgBadger. This mode will build a report |
| 2219 |
per day and a cumulative report per week. It also create an index |
| 2220 |
interface to easiest access to the different report. Must be run, |
| 2221 |
for example, as: |
| 2222 |
pgbadger /var/log/postgresql.log.1 -I -O /var/www/pgbadger/ |
| 2223 |
after a daily PostgreSQL log file rotation. |
| 2224 |
- Add -O | --outdir path to specify the directory where out file |
| 2225 |
must be saved. |
| 2226 |
- Automatic queries formatting is now done on double click event, |
| 2227 |
simple click was painful when you want to copy some part of the |
| 2228 |
queries. Thanks to Guillaume Smet for the feature request. |
| 2229 |
- Remove calls of binmode to force html file output to be utf8 as |
| 2230 |
there is some bad side effect. Thanks to akorotkov for the report. |
| 2231 |
- Remove use of Time::HiRes Perl module as some distributions does |
| 2232 |
not include this module by default in core Perl install. |
| 2233 |
- Fix "Wide character in print" Perl message by setting binmode |
| 2234 |
to :utf8. Thanks to Casey Allen Shobe for the report. |
| 2235 |
- Fix application name search regex to handle application name with |
| 2236 |
space like "pgAdmin III - Query Tool". |
| 2237 |
- Fix wrong timestamps saved with top queries. Thanks to Herve Werner |
| 2238 |
for the report. |
| 2239 |
- Fix missing logs types statitics when using binary mode. Thanks to |
| 2240 |
Herve Werner for the report. |
| 2241 |
- Fix Queries by application table column header: Database replaced |
| 2242 |
by Application. Thanks to Herve Werner for the report. |
| 2243 |
- Add "Max number of times the same event was reported" report in |
| 2244 |
Global stats Events tab. |
| 2245 |
- Replace "Number of errors" by "Number of ERROR entries" and add |
| 2246 |
"Number of FATAL entries". |
| 2247 |
- Replace "Number of errors" by "Number of events" and "Total errors |
| 2248 |
found" by "Total events found" in Events reports. Thanks to Herve |
| 2249 |
Werner for the report. |
| 2250 |
- Fix title error in Sessions per database. |
| 2251 |
- Fix clicking on the info link to not go back to the top of the page. |
| 2252 |
Thanks to Guillaume Smet for the report and solution. |
| 2253 |
- Fix incremental report from binary output where binary data was not |
| 2254 |
loaded if no queries were present in log file. Thanks to Herve Werner |
| 2255 |
for the report. |
| 2256 |
- Fix parsing issue when log_error_verbosity = verbose. Thanks to vorko |
| 2257 |
for the report. |
| 2258 |
- Add Session peak information and a report about Simultaneous sessions. |
| 2259 |
log_connections+log_disconnections must be enabled in postgresql.conf. |
| 2260 |
- Fix wrong requests number in Queries by user and by host. Thanks to |
| 2261 |
Jehan-Guillaume de Rorthais for the report. |
| 2262 |
- Fix issue with rsyslog format failing to parse logs. Thanks to Tim |
| 2263 |
Sampson for the report. |
| 2264 |
- Associate autovacuum and autoanalyze log entry to the corresponding |
| 2265 |
database name. Thanks to Herve Werner for the feature request. |
| 2266 |
- Change "Simultaneous Connections" label into "Established Connections", |
| 2267 |
it is less confusing as many people think that this is the number of |
| 2268 |
simultaneous sessions, which is not the case. It only count the number |
| 2269 |
of connections established at same time. Thanks to Ronan Dunklau for |
| 2270 |
the report. |
| 2271 |
|
| 2272 |
2013-11-08 version 4.1 |
| 2273 |
|
| 2274 |
This release fixes two major bugs and some others minor issues. There's also a |
| 2275 |
new command line option --exclude-appname that allow exclusion from the report |
| 2276 |
of queries generated by a specific program, like pg_dump. Documentation have |
| 2277 |
been updated with a new chapter about building incremental reports. |
| 2278 |
|
| 2279 |
- Add log_autovacuum_min_duration into documentation in chapter about |
| 2280 |
postgresql configuration directives. Thanks to Herve Werner for the |
| 2281 |
report. |
| 2282 |
- Add chapter about "Incremental reports" into documentation. |
| 2283 |
- Fix reports with per minutes average where last time fraction was |
| 2284 |
not reported. Thanks to Ludovic Levesque and Vincent Laborie for the |
| 2285 |
report. |
| 2286 |
- Fix unterminated comment in information popup. Thanks to Ronan |
| 2287 |
Dunklau for the patch. |
| 2288 |
- Add --exclude-appname command line option to eliminate unwanted |
| 2289 |
traffic generated by a specific application. Thanks to Steve Crawford |
| 2290 |
for the feature request. |
| 2291 |
- Allow external links use into URL to go to a specific report. Thanks |
| 2292 |
to Hubert depesz Lubaczewski for the feature request. |
| 2293 |
- Fix empty reports when parsing compressed files with the -j option |
| 2294 |
which is not allowed with compressed file. Thanks to Vincent Laborie |
| 2295 |
for the report. |
| 2296 |
- Prevent progress bar length to increase after 100% when real size is |
| 2297 |
greater than estimated size (issue found with huge compressed file). |
| 2298 |
- Correct some spelling and grammar in ChangeLog and pgbadger. Thanks |
| 2299 |
to Thom Brown for the patch. |
| 2300 |
- Fix major bug on SQL traffic reports with wrong min value and bad |
| 2301 |
average value on select reports, add min/max for select queries. |
| 2302 |
Thanks to Vincent Laborie for the report. |
| 2303 |
|
| 2304 |
2013-10-31 - Version 4.0 |
| 2305 |
|
| 2306 |
This major release is the "Say goodbye to the fouine" release. With a full |
| 2307 |
rewrite of the reports design, pgBadger has now turned the HTML reports into |
| 2308 |
a more intuitive user experience and professional look. |
| 2309 |
|
| 2310 |
The report is now driven by a dynamic menu with the help of the embedded |
| 2311 |
Bootstrap library. Every main menu corresponds to a hidden slide that is |
| 2312 |
revealed when the menu or one of its submenus is activated. There's |
| 2313 |
also the embedded font Font Awesome webfont to beautify the report. |
| 2314 |
|
| 2315 |
Every statistics report now includes a key value section that immediately |
| 2316 |
shows you some of the relevant information. Pie charts have also been |
| 2317 |
separated from their data tables using two tabs, one for the chart and the |
| 2318 |
other one for the data. |
| 2319 |
|
| 2320 |
Tables reporting hourly statistics have been moved to a multiple tabs report |
| 2321 |
following the data. This is used with General (queries, connections, sessions), |
| 2322 |
Checkpoints (buffer, files, warnings), Temporary files and Vacuums activities. |
| 2323 |
|
| 2324 |
There's some new useful information shown in the key value sections. Peak |
| 2325 |
information shows the number and datetime of the highest activity. Here is the |
| 2326 |
list of those reports: |
| 2327 |
|
| 2328 |
- Queries peak |
| 2329 |
- Read queries peak |
| 2330 |
- Write queries peak |
| 2331 |
- Connections peak |
| 2332 |
- Checkpoints peak |
| 2333 |
- WAL files usage Peak |
| 2334 |
- Checkpoints warnings peak |
| 2335 |
- Temporary file size peak |
| 2336 |
- Temporary file number peak |
| 2337 |
|
| 2338 |
Reports about Checkpoints and Restartpoints have been merged into a single report. |
| 2339 |
These are almost one in the same event, except that restartpoints occur on a slave |
| 2340 |
cluster, so there was no need to distinguish between the two. |
| 2341 |
|
| 2342 |
Recent PostgreSQL versions add additional information about checkpoints, the |
| 2343 |
number of synced files, the longest sync and the average of sync time per file. |
| 2344 |
pgBadger collects and shows this information in the Checkpoint Activity report. |
| 2345 |
|
| 2346 |
There's also some new reports: |
| 2347 |
|
| 2348 |
- Prepared queries ratio (execute vs prepare) |
| 2349 |
- Prepared over normal queries |
| 2350 |
- Queries (select, insert, update, delete) per user/host/application |
| 2351 |
- Pie charts for tables with the most tuples and pages removed during vacuum. |
| 2352 |
|
| 2353 |
The vacuum report will now highlight the costly tables during a vacuum or |
| 2354 |
analyze of a database. |
| 2355 |
|
| 2356 |
The errors are now highlighted by a different color following the level. |
| 2357 |
A LOG level will be green, HINT will be yellow, WARNING orange, ERROR red |
| 2358 |
and FATAL dark red. |
| 2359 |
|
| 2360 |
Some changes in the binary format are not backward compatible and the option |
| 2361 |
--client has been removed as it has been superseded by --dbclient for a long time now. |
| 2362 |
|
| 2363 |
If you are running a pg_dump or some batch process with very slow queries, your |
| 2364 |
report analysis will be hindered by those queries having unwanted prominence in the |
| 2365 |
report. Before this release it was a pain to exclude those queries from the |
| 2366 |
report. Now you can use the --exclude-time command line option to exclude all |
| 2367 |
traces matching the given time regexp from the report. For example, let's say |
| 2368 |
you have a pg_dump at 13:00 each day during half an hour, you can use pgbadger |
| 2369 |
as follows: |
| 2370 |
|
| 2371 |
pgbadger --exclude-time "2013-09-.* 13:.*" postgresql.log |
| 2372 |
|
| 2373 |
If you are also running a pg_dump at night, let's say 22:00, you can write it |
| 2374 |
as follows: |
| 2375 |
|
| 2376 |
pgbadger --exclude-time '2013-09-\d+ 13:[0-3]' --exclude-time '2013-09-\d+ 22:[0-3]' postgresql.log |
| 2377 |
|
| 2378 |
or more shortly: |
| 2379 |
|
| 2380 |
pgbadger --exclude-time '2013-09-\d+ (13|22):[0-3]' postgresql.log |
| 2381 |
|
| 2382 |
Exclude time always requires the iso notation yyyy-mm-dd hh:mm:ss, even if log |
| 2383 |
format is syslog. This is the same for all time-related options. Use this option |
| 2384 |
with care as it has a high cost on the parser performance. |
| 2385 |
|
| 2386 |
|
| 2387 |
2013-09-17 - version 3.6 |
| 2388 |
|
| 2389 |
Still an other version in 3.x branch to fix two major bugs in vacuum and checkpoint |
| 2390 |
graphs. Some other minors bugs has also been fixed. |
| 2391 |
|
| 2392 |
- Fix grammar in --quiet usage. Thanks to stephen-a-ingram for the report. |
| 2393 |
- Fix reporting period to starts after the last --last-parsed value instead |
| 2394 |
of the first log line. Thanks to Keith Fiske for the report. |
| 2395 |
- Add --csv-separator command line usage to documentation. |
| 2396 |
- Fix CSV log parser and add --csv-separator command line option to allow |
| 2397 |
change of the default csv field separator, coma, in any other character. |
| 2398 |
- Avoid "negative look behind not implemented" errors on perl 5.16/5.18. |
| 2399 |
Thanks to Marco Baringer for the patch. |
| 2400 |
- Support timestamps for begin/end with fractional seconds (so it'll handle |
| 2401 |
postgresql's normal string representation of timestamps). |
| 2402 |
- When using negative look behind set sub-regexp to -i (not case insensitive) |
| 2403 |
to avoid issues where some upper case letter sequence, like SS or ST. |
| 2404 |
- Change shebang from /usr/bin/perl to /usr/bin/env perl so that user-local |
| 2405 |
(perlbrew) perls will get used. |
| 2406 |
- Fix empty graph of autovacuum and autoanalyze. |
| 2407 |
- Fix checkpoint graphs that was not displayed any more. |
| 2408 |
|
| 2409 |
|
| 2410 |
2013-07-11 - Version 3.5 |
| 2411 |
|
| 2412 |
Last release of the 3.x branch, this is a bug fix release that also adds some |
| 2413 |
pretty print of Y axis number on graphs and a new graph that groups queries |
| 2414 |
duration series that was shown as second Y axis on graphs, as well as a new |
| 2415 |
graph with number of temporary file that was also used as second Y axis. |
| 2416 |
|
| 2417 |
- Split temporary files report into two graphs (files size and number |
| 2418 |
of file) to no more used a second Y axis with flotr2 - mouse tracker |
| 2419 |
is not working as expected. |
| 2420 |
- Duration series representing the second Y axis in queries graph have |
| 2421 |
been removed and are now drawn in a new "Average queries duration" |
| 2422 |
independant graph. |
| 2423 |
- Add pretty print of numbers in Y axis and mouse tracker output with |
| 2424 |
PB, TB, GB, KB, B units, and seconds, microseconds. Number without |
| 2425 |
unit are shown with P, T, M, K suffix for easiest very long number |
| 2426 |
reading. |
| 2427 |
- Remove Query type reports when log only contains duration. |
| 2428 |
- Fix display of checkpoint hourly report with no entry. |
| 2429 |
- Fix count in Query type report. |
| 2430 |
- Fix minimal statistics output when nothing was load from log file. |
| 2431 |
Thanks to Herve Werner for the report. |
| 2432 |
- Fix several bug in log line parser. Thanks to Den Untevskiy for the |
| 2433 |
report. |
| 2434 |
- Fix bug in last parsed storage when log files was not provided in the |
| 2435 |
right order. Thanks to Herve Werner for the report. |
| 2436 |
- Fix orphan lines wrongly associated to previous queries instead of |
| 2437 |
temporary file and lock logged statement. Thanks to Den Untevskiy for |
| 2438 |
the report. |
| 2439 |
- Fix number of different samples shown in events report. |
| 2440 |
- Escape HTML tags on error messages examples. Thanks to Mael Rimbault |
| 2441 |
for the report. |
| 2442 |
- Remove some temporary debug informations used with some LOG messages |
| 2443 |
reported as events. |
| 2444 |
- Fix several issues with restartpoint and temporary files reports. |
| 2445 |
Thanks to Guillaume Lelarge for the report. |
| 2446 |
- Fix issue when an absolute path was given to the incremental file. |
| 2447 |
Thanks to Herve Werner for the report. |
| 2448 |
- Remove creation of incremental temp file $tmp_last_parsed when not |
| 2449 |
running in multiprocess mode. Thanks to Herve Werner for the report. |
| 2450 |
|
| 2451 |
|
| 2452 |
2013-06-18 - Version 3.4 |
| 2453 |
|
| 2454 |
This release adds lot of graphic improvements and a better rendering with logs |
| 2455 |
over few hours. There's also some bug fixes especially on report of queries that |
| 2456 |
generate the most temporary files. |
| 2457 |
|
| 2458 |
- Update flotr2.min.js to latest github code. |
| 2459 |
- Add mouse tracking over y2axis. |
| 2460 |
- Add label/legend information to ticks displayed on mouseover graphs. |
| 2461 |
- Fix documentation about log_statement and log_min_duration_statement. |
| 2462 |
Thanks to Herve Werner for the report. |
| 2463 |
- Fix missing top queries for locks and temporary files in multiprocess |
| 2464 |
mode. |
| 2465 |
- Cleanup code to remove storage of unused information about connection. |
| 2466 |
- Divide the huge dump_as_html() method with one method per each report. |
| 2467 |
- Checkpoints, restart points and temporary files are now drawn using a |
| 2468 |
period of 5 minutes per default instead of one hour. Thanks to Josh |
| 2469 |
Berkus for the feature request. |
| 2470 |
- Change fixed increment of one hour to five minutes on queries graphs |
| 2471 |
"SELECT queries" and "Write queries". Remove graph "All queries" as, |
| 2472 |
with a five minutes increment, it duplicates the "Queries per second". |
| 2473 |
Thanks to Josh Berkus for the feature request. |
| 2474 |
- Fix typos. Thanks to Arsen Stasic for the patch. |
| 2475 |
- Add default HTML charset to utf-8 and a command line option --charset |
| 2476 |
to be able to change the default. Thanks to thomas hankeuhh for the |
| 2477 |
feature request. |
| 2478 |
- Fix missing temporary files query reports in some conditions. Thanks |
| 2479 |
to Guillaume Lelarge and Thomas Reiss for the report. |
| 2480 |
- Fix some parsing issue with log generated by pg 7.4. |
| 2481 |
- Update documentation about missing new reports introduced in previous |
| 2482 |
version 3.3. |
| 2483 |
|
| 2484 |
Note that it should be the last release of the 3.x branch unless there's major |
| 2485 |
bug fixes, but next one will be a major release with a completely new design. |
| 2486 |
|
| 2487 |
|
| 2488 |
2013-05-01 - Version 3.3 |
| 2489 |
|
| 2490 |
This release adds four more useful reports about queries that generate locks and |
| 2491 |
temporary files. An other new report about restart point on slaves and several |
| 2492 |
bugs fix or cosmetic change. Support to parallel processing under Windows OS has |
| 2493 |
been removed. |
| 2494 |
|
| 2495 |
- Remove parallel processing under Windows platform, the use of waitpid |
| 2496 |
is freezing pgbadger. Thanks to Saurabh Agrawal for the report. I'm |
| 2497 |
not comfortable with that OS this is why support have been removed, |
| 2498 |
if someone know how to fix that, please submit a patch. |
| 2499 |
- Fix Error in tempfile() under Windows. Thanks to Saurabh Agrawal for |
| 2500 |
the report. |
| 2501 |
- Fix wrong queries storage with lock and temporary file reports. Thanks |
| 2502 |
to Thomas Reiss for the report. |
| 2503 |
- Add samples queries to "Most frequent waiting queries" and "Queries |
| 2504 |
generating the most temporary files" report. |
| 2505 |
- Add two more reports about locks: 'Most frequent waiting queries (N)", |
| 2506 |
and "Queries that waited the most". Thanks to Thomas Reiss for the |
| 2507 |
patch. |
| 2508 |
- Add two reports about temporary files: "Queries generating the most |
| 2509 |
temporary files (N)" and "Queries generating the largest temporary |
| 2510 |
files". Thanks to Thomas Reiss for the patch. |
| 2511 |
- Cosmetic change to the Min/Max/Avg duration columns. |
| 2512 |
- Fix report of samples error with csvlog format. Thanks to tpoindessous |
| 2513 |
for the report. |
| 2514 |
- Add --disable-autovacuum to the documentation. Thanks to tpoindessous |
| 2515 |
for the report. |
| 2516 |
- Fix unmatched ) in regex when using %s in prefix. |
| 2517 |
- Fix bad average size of temporary file in Overall statistics report. |
| 2518 |
Thanks to Jehan Guillaume de Rorthais for the report. |
| 2519 |
- Add restartpoint reporting. Thanks to Guillaume Lelarge for the patch. |
| 2520 |
- Made some minor change in CSS. |
| 2521 |
- Replace %% in log line prefix internally by a single % so that it |
| 2522 |
could be exactly the same than in log_line_prefix. Thanks to Cal |
| 2523 |
Heldenbrand for the report. |
| 2524 |
- Fix perl documentation header, thanks to Cyril Bouthors for the patch. |
| 2525 |
|
| 2526 |
2013-04-07 - Version 3.2 |
| 2527 |
|
| 2528 |
This is mostly a bug fix release, it also adds escaping of HTML code inside |
| 2529 |
queries and the adds Min/Max reports with Average duration in all queries |
| 2530 |
reports. |
| 2531 |
|
| 2532 |
- In multiprocess mode, fix case where pgbadger does not update |
| 2533 |
the last-parsed file and do not take care of the previous run. |
| 2534 |
Thanks to Kong Man for the report. |
| 2535 |
- Fix case where pgbadger does not update the last-parsed file. |
| 2536 |
Thanks to Kong Man for the report. |
| 2537 |
- Add CDATA to make validator happy. Thanks to Euler Taveira de |
| 2538 |
Oliveira for the patch. |
| 2539 |
- Some code review by Euler Taveira de Oliveira, thanks for the |
| 2540 |
patch. |
| 2541 |
- Fix case where stat were multiplied by N when -J was set to N. |
| 2542 |
Thanks to thegnorf for the report. |
| 2543 |
- Add a line in documentation about log_statement that disable |
| 2544 |
log_min_duration_statement when it is set to all. |
| 2545 |
- Add quick note on how to contribute, thanks to Damien Clochard |
| 2546 |
for the patch. |
| 2547 |
- Fix issue with logs read from stdin. Thanks to hubert depesz |
| 2548 |
lubaczewski for the report. |
| 2549 |
- Force pgbadger to not try to beautify queries bigger than 10kb, |
| 2550 |
this will take too much time. This value can be reduce in the |
| 2551 |
future if hang with long queries still happen. Thanks to John |
| 2552 |
Rouillard for the report. |
| 2553 |
- Fix an other issue in replacing bind param when the bind value |
| 2554 |
is alone on a single line. Thanks to Kjeld Peters for the report. |
| 2555 |
- Fix parsing of compressed files together with uncompressed files |
| 2556 |
using the the -j option. Uncompressed files are now processed using |
| 2557 |
split method and compressed ones are parsed per one dedicated process. |
| 2558 |
- Replace zcat by gunzip -c to fix an issue on MacOsx. Thanks to |
| 2559 |
Kjeld Peters for the report. |
| 2560 |
- Escape HTML code inside queries. Thanks to denstark for the report. |
| 2561 |
- Add Min/Max in addition to Average duration values in queries reports. |
| 2562 |
Thanks to John Rouillard fot the feature request. |
| 2563 |
- Fix top slowest array size with binary format. |
| 2564 |
- Fix an other case with bind parameters with value in next line and |
| 2565 |
the top N slowest queries that was repeated until N even if the real |
| 2566 |
number of queries was lower. Thanks to Kjeld Peters for the reports. |
| 2567 |
- Fix non replacement of bind parameters where there is line breaks in |
| 2568 |
the parameters, aka multiline bind parameters. Thanks to Kjeld Peters |
| 2569 |
for the report. |
| 2570 |
- Fix error with seekable export tag with Perl v5.8. Thanks to Jeff Bohmer |
| 2571 |
for the report. |
| 2572 |
- Fix parsing of non standard syslog lines begining with a timestamp like |
| 2573 |
"2013-02-28T10:35:11-05:00". Thanks to Ryan P. Kelly for the report. |
| 2574 |
- Fix issue #65 where using -c | --dbclient with csvlog was broken. Thanks |
| 2575 |
to Jaime Casanova for the report. |
| 2576 |
- Fix empty report in watchlog mode (-w option). |
| 2577 |
|
| 2578 |
2013-02-21 - Version 3.1 |
| 2579 |
|
| 2580 |
This is a quick release to fix missing reports of most frequent errors and slowest |
| 2581 |
normalized queries in previous version published yesterday. |
| 2582 |
|
| 2583 |
- Fix empty report in watchlog mode (-w option). |
| 2584 |
- Force immediat die on command line options error. |
| 2585 |
- Fix missing report of most frequent events/errors report. Thanks to |
| 2586 |
Vincent Laborie for the report. |
| 2587 |
- Fix missing report of slowest normalized queries. Thanks to Vincent |
| 2588 |
Laborie for the report. |
| 2589 |
- Fix display of last print of progress bar when quiet mode is enabled. |
| 2590 |
|
| 2591 |
2013-02-20 - Version 3.0 |
| 2592 |
|
| 2593 |
This new major release adds parallel log processing by using as many cores as |
| 2594 |
wanted to parse log files, the performances gain is directly related to the |
| 2595 |
number of cores specified. There's also new reports about autovacuum/autoanalyze |
| 2596 |
informations and many bugs have been fixed. |
| 2597 |
|
| 2598 |
- Update documentation about log_duration, log_min_duration_statement |
| 2599 |
and log_statement. |
| 2600 |
- Rewrite dirty code around log timestamp comparison to find timestamp |
| 2601 |
of the specified begin or ending date. |
| 2602 |
- Remove distinction between logs with duration enabled from variables |
| 2603 |
log_min_duration_statement and log_duration. Commands line options |
| 2604 |
--enable-log_duration and --enable-log_min_duration have been removed. |
| 2605 |
- Update documentation about parallel processing. |
| 2606 |
- Remove usage of Storable::file_magic to autodetect binary format file, |
| 2607 |
it is not include in core perl 5.8. Thanks to Marc Cousin for the |
| 2608 |
report. |
| 2609 |
- Force multiprocess per file when files are compressed. Thanks to |
| 2610 |
Julien Rouhaud for the report. |
| 2611 |
- Add progress bar logger for multiprocess by forking a dedicated |
| 2612 |
process and using pipe. Also fix some bugs in using binary format |
| 2613 |
that duplicate query/error samples per process. |
| 2614 |
- chmod 755 pgbadger |
| 2615 |
- Fix checkpoint reports when there is no checkpoint warnings. |
| 2616 |
- Fix non report of hourly connections/checkpoint/autovacuum when not |
| 2617 |
query is found in log file. Thanks to Guillaume Lelarge for the |
| 2618 |
report. |
| 2619 |
- Add better handling of signals in multiprocess mode. |
| 2620 |
- Add -J|--job_per_file command line option to force pgbadger to use |
| 2621 |
one process per file instead of using all to parse one file. Useful |
| 2622 |
to have better performances with lot of small log file. |
| 2623 |
- Fix parsing of orphan lines with stderr logs and log_line_prefix |
| 2624 |
without session information into the prefix (%l). |
| 2625 |
- Update documentation about -j | --jobs option. |
| 2626 |
- Allow pgbadger to use several cores, aka multiprocessing. Add options |
| 2627 |
-j | --jobs option to specify the number of core to use. |
| 2628 |
- Add autovacuum and autoanalyze infos to binary format. |
| 2629 |
- Fix case in SQL code highlighting where QQCODE temp keyword was not |
| 2630 |
replaced. Thanks to Julien Ruhaud for the report. |
| 2631 |
- Fix CSS to draw autovacuum graph and change legend opacity. |
| 2632 |
- Add pie graph to show repartition of number of autovacuum per table |
| 2633 |
and number of tuples removed by autovacuum per table. |
| 2634 |
- Add debug information about selected type of log duration format. |
| 2635 |
- Add report of tuples/pages removed in report of Vacuums by table. |
| 2636 |
- Fix major bug on syslog parser where years part of the date was |
| 2637 |
wrongly extracted from current date with logs generated in 2012. |
| 2638 |
- Fix issue with Perl 5.16 that do not allow "ss" inside look-behind |
| 2639 |
assertions. Thanks to Cedric for the report. |
| 2640 |
- New vacuum and analyze hourly reports and graphs. Thanks to Guillaume |
| 2641 |
Lelarge for the patch. |
| 2642 |
|
| 2643 |
UPGRADE: if you are running pgbadger by cron take care if you were using one of |
| 2644 |
the following option: --enable-log_min_duration and --enable-log_duration, they |
| 2645 |
have been removed and pgbadger will refuse to start. |
| 2646 |
|
| 2647 |
2013-01-17 - Version 2.3 |
| 2648 |
|
| 2649 |
This release fixes several major issues especially with csvlog and a memory leak |
| 2650 |
with log parsing using a start date. There's also several improvement like new |
| 2651 |
reports of number of queries by database and application. Mouse over reported |
| 2652 |
queries will show database, user, remote client and application name where they |
| 2653 |
are executed. |
| 2654 |
|
| 2655 |
A new binary input/output format have been introduced to allow saving or reading |
| 2656 |
precomputed statistics. This will allow incremental reports based on periodical |
| 2657 |
runs of pgbader. This is a work in progress fully available with next coming |
| 2658 |
major release. |
| 2659 |
|
| 2660 |
Several SQL code beautifier improvement from pgFormatter have also been merged. |
| 2661 |
|
| 2662 |
- Clarify misleading statement about log_duration: log_duration may be |
| 2663 |
turned on depending on desired information. Only log_statement must |
| 2664 |
not be on. Thanks to Matt Romaine for the patch. |
| 2665 |
- Fix --dbname and --dbuser not working with csvlog format. Thanks to |
| 2666 |
Luke Cyca for the report. |
| 2667 |
- Fix issue in SQL formatting that prevent left back indentation when |
| 2668 |
major keywords were found. Thanks to Kevin Brannen for the report. |
| 2669 |
- Display 3 decimals in time report so that ms can be seen. Thanks to |
| 2670 |
Adam Schroder for the request. |
| 2671 |
- Force the parser to not insert a new line after the SET keyword when |
| 2672 |
the query begin with it. This is to preserve the single line with |
| 2673 |
queries like SET client_encoding TO "utf8"; |
| 2674 |
- Add better SQL formatting of update queries by adding a new line |
| 2675 |
after the SET keyword. Thanks to pilat66 for the report. |
| 2676 |
- Update copyright and documentation. |
| 2677 |
- Queries without application name are now stored under others |
| 2678 |
application name. |
| 2679 |
- Add report of number of queries by application if %a is specified in |
| 2680 |
the log_line_prefix. |
| 2681 |
- Add link menu to the request per database and limit the display of |
| 2682 |
this information when there is more than one database. |
| 2683 |
- Add report of requests per database. |
| 2684 |
- Add report of user,remote client and application name to all request |
| 2685 |
info. |
| 2686 |
- Fix memory leak with option -b (--begin) and in incremental log |
| 2687 |
parsing mode. |
| 2688 |
- Remove duration part from log format auto-detection. Thanks to |
| 2689 |
Guillaume Lelarge for the report. |
| 2690 |
- Fix a performance issue on prettifying SQL queries that makes pgBagder |
| 2691 |
several time slower that usual to generate the HTML output. Thanks to |
| 2692 |
Vincent Laborie for the report. |
| 2693 |
- Add missing SQL::Beautify paternity. |
| 2694 |
- Add 'binary' format as input/output format. The binary output format |
| 2695 |
allows to save log statistics in a non human readable file instead of |
| 2696 |
an HTML or text file. These binary files might then be used as regular |
| 2697 |
input files, combined or not, to produce a html or txt report. Thanks |
| 2698 |
to Jehan Guillaume de Rorthais for the patch. |
| 2699 |
- Remove port from the session regex pattern to match all lines. |
| 2700 |
- Fix the progress bar. It was trying to use gunzip to get real file |
| 2701 |
size for all formats (by default). Unbreak the bz2 format (that does |
| 2702 |
not report real size) and add support for zip format. Thanks to Euler |
| 2703 |
Taveira de Oliveira fort the patch. |
| 2704 |
- Fix some typos and grammatical issues. Thanks to Euler Taveira de |
| 2705 |
Oliveira fort the patch. |
| 2706 |
- Improve SQL code highlighting and keywords detection merging change |
| 2707 |
from pgFormatter project. |
| 2708 |
- Add support to hostname or ip address in the client detection. Thanks |
| 2709 |
to stuntmunkee for the report. |
| 2710 |
- pgbadger will now only reports execute statement of the extended |
| 2711 |
protocol (parse/bind/execute). Thanks to pierrestroh for the report. |
| 2712 |
- Fix numerous typos as well as formatting and grammatical issues. |
| 2713 |
Thanks to Thom Brown for the patch. |
| 2714 |
- Add backward compatibility to obsolete --client command line option. |
| 2715 |
If you were using the short option -c nothing is changed. |
| 2716 |
- Fix issue with --dbclient and %h in log_line_prefix. Thanks to Julien |
| 2717 |
Rouhaud for the patch. |
| 2718 |
- Fix multiline progress bar output. |
| 2719 |
- Allow usage of a dash into database, user and application names when |
| 2720 |
prefix is used. Thanks to Vipul for the report. |
| 2721 |
- Mouse over queries will now show in which database they are executed |
| 2722 |
in the overviews (Slowest queries, Most frequent queries, etc. ). |
| 2723 |
Thank to Dirk-Jan Bulsink for the feature request. |
| 2724 |
- Fix missing keys on %cur_info hash. Thanks to Marc Cousin for the |
| 2725 |
report. |
| 2726 |
- Move opening file handle to log file into a dedicated function. |
| 2727 |
Thanks to Marc Cousin for the patch. |
| 2728 |
- Replace Ctrl+M by printable \r. Thanks to Marc Cousin for the report. |
| 2729 |
|
| 2730 |
|
| 2731 |
2012-11-13 - Version 2.2 |
| 2732 |
|
| 2733 |
This release add some major features like tsung output, speed improvement with |
| 2734 |
csvlog, report of shut down events, new command line options to generate report |
| 2735 |
excluding some user(s), to build report based on select queries only, to specify |
| 2736 |
regex of the queries that must only be included in the report and to remove |
| 2737 |
comments from queries. Lot of bug fixes, please upgrade. |
| 2738 |
|
| 2739 |
- Update PostgreSQL keywords list for 9.2 |
| 2740 |
- Fix number of queries in progress bar with tsung output. |
| 2741 |
- Remove obsolete syslog-ng and temporary syslog-ll log format added to |
| 2742 |
fix some syslog autodetection issues. There is now just one syslog |
| 2743 |
format: syslog, differences between syslog formats are detected and |
| 2744 |
the log parser is adaptive. |
| 2745 |
- Add comment about the check_incremental_position() method |
| 2746 |
- Fix reports with empty graphs when log files were not in chronological |
| 2747 |
order. |
| 2748 |
- Add report of current total of queries and events parsed in progress |
| 2749 |
bar. Thanks to Jehan-Guillaume de Rorthais for the patch. |
| 2750 |
- Force pgBadger to use an require the XS version of Text::CSV instead |
| 2751 |
of the Pure Perl implementation. It is a good bit faster thanks to |
| 2752 |
David Fetter for the patch. Note that using csvlog is still a bit |
| 2753 |
slower than syslog or stderr log format. |
| 2754 |
- Fix several issue with tsung output. |
| 2755 |
- Add report of shut down events |
| 2756 |
- Add debug information on command line used to pipe compressed log |
| 2757 |
file when -v is provide. |
| 2758 |
- Add -U | --exclude-user command line option to generate report |
| 2759 |
excluded user. Thanks to Birta Levente for the feature request. |
| 2760 |
- Allow some options to be specified multiple time or be written as a |
| 2761 |
coma separated list of value, here are these options: --dbname, |
| 2762 |
--dbuser, --dbclient, --dbappname, --exclude_user. |
| 2763 |
- Add -S | --select-only option to build report only on select queries. |
| 2764 |
- Add first support to tsung output, see usage. Thanks to Guillaume |
| 2765 |
Lelarge for the feature request. |
| 2766 |
- Add --include-query and --include-file to specify regex of the queries |
| 2767 |
that must only be included in the report. Thanks to Marc Cousin for |
| 2768 |
the feature request. |
| 2769 |
- Fix auto detection of log_duration and log_min_duration_statement |
| 2770 |
format. |
| 2771 |
- Fix parser issue with Windows logs without timezone information. |
| 2772 |
Thanks to Nicolas Thauvin for the report. |
| 2773 |
- Fix bug in %r = remote host and port log line prefix detection. |
| 2774 |
Thanks to Hubert Depesz Lubaczewski for the report. |
| 2775 |
- Add -C | --nocomment option to remove comment like /* ... */ from |
| 2776 |
queries. Thanks to Hubert Depesz Lubaczewski for the feature request. |
| 2777 |
- Fix escaping of log_line_prefix. Thanks to Hubert Depesz Lubaczewski |
| 2778 |
for the patch. |
| 2779 |
- Fix wrong detection of update queries when a query has a object names |
| 2780 |
containing update and set. Thanks to Vincent Laborie for the report. |
| 2781 |
|
| 2782 |
2012-10-10 - Version 2.1 |
| 2783 |
|
| 2784 |
This release add a major feature by allowing any custom log_line_prefix to be |
| 2785 |
used by pgBadger. With stderr output you at least need to log the timestamp (%t) |
| 2786 |
the pid (%p) and the session/line number (%l). Support to log_duration instead |
| 2787 |
of log_min_duration_statement to allow reports simply based on duration and |
| 2788 |
count report without query detail and report. Lot of bug fixes, please upgrade |
| 2789 |
asap. |
| 2790 |
|
| 2791 |
- Add new --enable-log_min_duration option to force pgbadger to use lines |
| 2792 |
generated by the log_min_duration_statement even if the log_duration |
| 2793 |
format is autodetected. Useful if you use both but do not log all queries. |
| 2794 |
Thanks to Vincent Laborie for the feature request. |
| 2795 |
- Add syslog-ng format to better handle syslog traces with notation like: |
| 2796 |
[ID * local2.info]. It is autodetected but can be forced in the -f option |
| 2797 |
with value set to: syslog-ng. |
| 2798 |
- Add --enable-log_duration command line option to force pgbadger to only |
| 2799 |
use the log_duration trace even if log_min_duration_statement traces are |
| 2800 |
autodetected. |
| 2801 |
- Fix display of empty hourly graph when no data were found. |
| 2802 |
- Remove query type report when log_duration is enabled. |
| 2803 |
- Fix a major bug in query with bind parameter. Thanks to Marc Cousin for |
| 2804 |
the report. |
| 2805 |
- Fix detection of compressed log files and allow automatic detection |
| 2806 |
and uncompress of .gz, .bz2 and .zip files. |
| 2807 |
- Add gunzip -l command to find the real size of a gzip compressed file. |
| 2808 |
- Fix log_duration only reports to not take care about query detail but |
| 2809 |
just count and duration. |
| 2810 |
- Fix issue with compressed csvlog. Thanks to Philip Freeman for the |
| 2811 |
report. |
| 2812 |
- Allow usage of log_duration instead of log_min_duration_statement to |
| 2813 |
just collect statistics about the number of queries and their time. |
| 2814 |
Thanks to Vincent Laborie for the feature request. |
| 2815 |
- Fix issue on syslog format and autodetect with additional info like: |
| 2816 |
[ID * local2.info]. Thanks to kapsalar for the report. |
| 2817 |
- Removed unrecognized log line generated by deadlock_timeout. |
| 2818 |
- Add missing information about unsupported csv log input from stdin. |
| 2819 |
It must be read from a file. Thank to Philip Freeman for the report. |
| 2820 |
- Fix issue #28: Illegal division by zero with log file without query |
| 2821 |
and txt output. Thanks to rlowe for the report. |
| 2822 |
- Update documentation about the -N | --appname option. |
| 2823 |
- Rename --name option into --appname. Thanks to Guillaume Lellarge for |
| 2824 |
the patch. |
| 2825 |
- Fix min/max value in xasis that was always represented 2 days by |
| 2826 |
default. Thanks to Casey Allen Shobe for the report. |
| 2827 |
- Fix major bug when running pgbadger with the -e option. Thanks to |
| 2828 |
Casey Allen Shobe for the report and the great help |
| 2829 |
- Change project url to http://dalibo.github.com/pgbadger/. Thanks to |
| 2830 |
Damien Clochard for this new hosting. |
| 2831 |
- Fix lot of issues in CSV parser and force locale to be C. Thanks to |
| 2832 |
Casey Allen Shobe for the reports. |
| 2833 |
- Improve speed with custom log_line_prefix. |
| 2834 |
- Merge pull request #26 from elementalvoid/helpdoc-fix |
| 2835 |
- Fixed help text for --exclude-file. Old help text indicated that the |
| 2836 |
option name was --exclude_file which was incorrect. |
| 2837 |
- Remove the obsolete --regex-user and --regex-db options that was used |
| 2838 |
to specify a search pattern in the log_line_prefix to find the user |
| 2839 |
and db name. This is replaced by the --prefix option. |
| 2840 |
- Replace Time column report header by Hour. |
| 2841 |
- Fix another issue in log_line_prefix parser with stderr format |
| 2842 |
- Add a more complex example using log_line_prefix |
| 2843 |
- Fix log_line_prefix issue when using timepstamp with millisecond. |
| 2844 |
- Add support to use any custom log_line_prefix with new option -p or |
| 2845 |
--prefix. See README for an example. |
| 2846 |
- Fix false autodetection of CSV format when log_statement is enable or |
| 2847 |
in possible other cases. This was resulting in error: "FATAL: cannot |
| 2848 |
use CSV". Thanks to Thomas Reiss for the report. |
| 2849 |
- Fix display of empty graph of connections per seconds |
| 2850 |
- Allow character : in log line prefix, it will no more break the log |
| 2851 |
parsing. Thanks to John Rouillard for the report. |
| 2852 |
- Add report of configuration parameter changes into the errors report |
| 2853 |
and change errors report by events report to handle important messages |
| 2854 |
that are not errors. |
| 2855 |
- Allow pgbadger to recognize " autovacuum launcher" messages. |
| 2856 |
|
| 2857 |
2012-08-21 - version 2.0 |
| 2858 |
|
| 2859 |
This major version adds some changes not backward compatible with previous |
| 2860 |
versions. Options -p and -g are not more used as progress bar and graphs |
| 2861 |
generation are enabled by default now. |
| 2862 |
|
| 2863 |
The obsolete -l option use to specify the log file to parse has been reused to |
| 2864 |
specify an incremental file. Outside these changes and some bug fix there's |
| 2865 |
also new features: |
| 2866 |
|
| 2867 |
* Using an incremental file with -l option allow to parse multiple time a |
| 2868 |
single log file and to "seek" at the last line parsed during the previous |
| 2869 |
run. Useful if you have a log rotation not sync with your pgbadger run. |
| 2870 |
For exemple you can run somthing like this: |
| 2871 |
|
| 2872 |
pgbadger `find /var/log/postgresql/ -name "postgresql*" -mtime -7 -type f` \ |
| 2873 |
-o report_`date +%F`.html -l /var/run/pgbadger/last_run.log |
| 2874 |
|
| 2875 |
* All queries diplayed in the HTML report are now clickable to display or |
| 2876 |
hide a nice SQL query format. This is called SQL format beautifier. |
| 2877 |
|
| 2878 |
* CSV log parser have been entirely rewritten to handle csv with multiline. |
| 2879 |
|
| 2880 |
Every one should upgrade. |
| 2881 |
|
| 2882 |
- Change license from BSD like to PostgreSQL license. Request from |
| 2883 |
Robert Treat. |
| 2884 |
- Fix wrong pointer on Connections per host menu. Reported by Jean-Paul |
| 2885 |
Argudo. |
| 2886 |
- Small fix for sql formatting adding scrollbars. Patch by Julien |
| 2887 |
Rouhaud. |
| 2888 |
- Add SQL format beautifier on SQL queries. When you will click on a |
| 2889 |
query it will be beautified. Patch by Gilles Darold |
| 2890 |
- The progress bar is now enabled by default, the -p option has been |
| 2891 |
removed. Use -q | --quiet to disable it. Patch by Gilles Darold. |
| 2892 |
- Graphs are now generated by default for HTML output, option -g as |
| 2893 |
been remove and option -G added to allow disabling graph generation. |
| 2894 |
Request from Julien Rouhaud, patch by Gilles Darold. |
| 2895 |
- Remove option -g and -p to the documentation. Patch by Gilles Darold. |
| 2896 |
- Fix case sensitivity in command line options. Patch by Julien Rouhaud. |
| 2897 |
- Add -T|--title option to change report title. Patch by Yury Bushmelev. |
| 2898 |
- Add new option --exclude-file to exclude specific commands with regex |
| 2899 |
stated in a file. This is a rewrite by Gilles Darold of the neoeahit |
| 2900 |
(Vipul) patch. |
| 2901 |
- CSV log parser have been entirely rewritten to handle csv with multi |
| 2902 |
line, it also adds approximative duration for csvlog. Reported by |
| 2903 |
Ludhimila Kendrick, patch by Gilles Darold. |
| 2904 |
- Alphabetical reordering of options list in method usage() and |
| 2905 |
documentation. Patch by Gilles Darold. |
| 2906 |
- Remove obsolete -l | --logfile command line option, the -l option |
| 2907 |
will be reused to specify an incremental file. Patch by Gilles Darold. |
| 2908 |
- Add -l | --last-parsed options to allow incremental run of pgbadger. |
| 2909 |
Patch by Gilles Darold. |
| 2910 |
- Replace call to timelocal_nocheck by timegm_nocheck, to convert date |
| 2911 |
time into second from the epoch. This should fix timezone issue. |
| 2912 |
Patch by Gilles Darold. |
| 2913 |
- Change regex on log parser to allow missing ending space in |
| 2914 |
log_line_prefix. This seems a common mistake. Patch by Gilles Darold. |
| 2915 |
- print warning when an empty log file is found. Patch by Gilles Darold. |
| 2916 |
- Add perltidy rc file to format pgbadger Perl code. Patch from depesz. |
| 2917 |
|
| 2918 |
2012-07-15 - version 1.2 |
| 2919 |
|
| 2920 |
This version adds some reports and fixes a major issue in log parser. Every one |
| 2921 |
should upgrade. |
| 2922 |
|
| 2923 |
- Rewrite this changelog to be human readable. |
| 2924 |
- Add -v | --verbose to enable debug mode. It is now disable by default |
| 2925 |
- Add hourly report of checkpoint warning when checkpoints are occuring |
| 2926 |
too frequently, it will display the hourly count and the average |
| 2927 |
occuring time. |
| 2928 |
- Add new report that sums the messages by log types. The report shows |
| 2929 |
the number of messages of each log type, and a percentage. It also |
| 2930 |
displays a pie graph. Patch by Guillaume Lelarge. |
| 2931 |
- Add missing pie graph on locks by type report. |
| 2932 |
- Format pie mouse track to display values only. |
| 2933 |
- Fix graph download button id on new connection graph. |
| 2934 |
- Add trackFormatter to flotr2 line graphs to show current x/y values. |
| 2935 |
- Fix issue on per minute minimum value. |
| 2936 |
- Add a note about Windows Os and zcat as well as a more general note |
| 2937 |
about using compressed log file in other format than gzip. |
| 2938 |
- Complete rewrite of the log parser to handle unordered log lines. |
| 2939 |
Data are now stored by pid before and added to the global statistics |
| 2940 |
at end. Error report now include full details, statements, contexts |
| 2941 |
and hints when available. Deadlock are also fully reported with the |
| 2942 |
concerned queries. |
| 2943 |
- Fix miss handling of multi lines queries on syslog. |
| 2944 |
- Add -a|--average option to configure the per minutes average interval |
| 2945 |
for queries and connexions. If you want the average to be calculated |
| 2946 |
each minutes instead of the 5 per default, use --average 1 or for the |
| 2947 |
default --average 5. If you want average per hour set it to 60. |
| 2948 |
- Add hourly statistics of connections and sessions as well as a chart |
| 2949 |
about the number of connection per second (5 minutes average). |
| 2950 |
- Allow OTHERS type of queries lower than 2% to be include in the sum of |
| 2951 |
types < 2%. |
| 2952 |
- Add autodetection of syslog ident name if different than the default |
| 2953 |
"postgres" and that there is just one ident name in the log. |
| 2954 |
- Remove syslog replacement of tabulation by #011 still visible when |
| 2955 |
there was multiple tabulation. |
| 2956 |
- Fix autodetection of log format syslog with single-digit day number |
| 2957 |
in date. |
| 2958 |
- Add ChangeLog to MANIFEST and change URI in html footer. |
| 2959 |
- Check pgBadger compatibility with Windows Oses. Run perfectly. |
| 2960 |
|
| 2961 |
|
| 2962 |
2012-07-04 - version 1.1 |
| 2963 |
|
| 2964 |
This release fixes lot of issues and adds several main features. |
| 2965 |
|
| 2966 |
New feature: |
| 2967 |
|
| 2968 |
- Add possibility to get log from stdin |
| 2969 |
- Change syslog parsing regex to allow log timestamp in log_line_prefix |
| 2970 |
very often forgotten when log destination is changed from stderr to |
| 2971 |
syslog. |
| 2972 |
- Add documentation for the -z | --zcat command line option. |
| 2973 |
- Allow `zcat` location to be specified via `--zcat` - David E. Wheeler |
| 2974 |
- Add --disable-session,--disable-connection and disable-checkpoint |
| 2975 |
command line options to remove their respective reports from the |
| 2976 |
output |
| 2977 |
- Add --disable-query command line option to remove queries statistics |
| 2978 |
from the output |
| 2979 |
- Add --disable-hourly command line option to remove hourly statistics |
| 2980 |
from the output |
| 2981 |
- Add --disable-error command line option to remove error report from |
| 2982 |
the output |
| 2983 |
- Add --exclude-query option to exclude types of queries by specifying |
| 2984 |
a regex |
| 2985 |
- Set thousand separator and decimal separator to be locale dependant |
| 2986 |
- Add -w option to only report errors |
| 2987 |
- Add Makefile.PL and full POD documentation to the project |
| 2988 |
- Allow multiple log files from command line |
| 2989 |
- Add simple csvlog support - Alex Hunsaker |
| 2990 |
- Hourly report for temporary files and checkpoints have moved in a |
| 2991 |
separate table. |
| 2992 |
- Add hourly connections and sessions statistics. |
| 2993 |
- Add a chart about the number of connections per seconds. |
| 2994 |
|
| 2995 |
Bug fix: |
| 2996 |
|
| 2997 |
- Add information about log format requirement (lc_message = 'C'). |
| 2998 |
Reported by Alain Benard. |
| 2999 |
- Fix for begin/end dates with single digit day using syslog. Patch by |
| 3000 |
Joseph Marlin. |
| 3001 |
- Fix handle of syslog dates with single-digit day number. Patch by |
| 3002 |
Denis Orlikhin. |
| 3003 |
- Fix many English syntax in error messages and documentation. Patch by |
| 3004 |
Joseph Marlin. |
| 3005 |
- Fix non terminated TH html tag in checkpoint hourly table. Reported |
| 3006 |
by Joseph Marlin. |
| 3007 |
- "Log file" section will now only report first and last log file parsed |
| 3008 |
- Fix empty output in hourly temporary file stats. |
| 3009 |
- Fix wrapping query that goes out of the table and makes the window |
| 3010 |
scroll horizontally. Asked by Isaac Reuben. |
| 3011 |
- Fix code where != was replaced by $$CLASSSY0A$$!=$$CLASSSY0B$$ in the |
| 3012 |
output. Reported by Isaac Reuben |
| 3013 |
- Fix and review text report output. |
| 3014 |
- Fix an issue in SQL code highligh replacement. |
| 3015 |
- Complete review of the HTML output. |
| 3016 |
- Add .gitignore for swap files. Patch by Vincent Picavet |
| 3017 |
- Fix wrong variable for user and database filter. Patch by Vincent |
| 3018 |
Picavet. |
| 3019 |
- Change default regexp for user and db to be able to detect both. Patch |
| 3020 |
by Vincent Picavet. |
| 3021 |
- Fix false cur_date when using syslog and allow -b and -e options to |
| 3022 |
work. Patch by Vincent Picavet. |
| 3023 |
- Fix some case where logs where not detected as PostgreSQL log lines. |
| 3024 |
- Added explanation for --begin and --end datetime setting. Patch by |
| 3025 |
ragged. |
| 3026 |
- Added -v / --version. Patch by ragged. |
| 3027 |
- Fix usage information and presentation in README file. |
| 3028 |
|
| 3029 |
2012-05-04 - version to 1.0 |
| 3030 |
|
| 3031 |
First public release of pgBadger. |
| 3032 |
|
| 3033 |
New feature: |
| 3034 |
|
| 3035 |
- Add graph of ckeckpoint Wal files usage (added, removed, recycled). |
| 3036 |
- Add --image-format to allow the change of the default png image |
| 3037 |
format to jpeg. |
| 3038 |
- Allow download of all pie graphics as images. |
| 3039 |
- Add --pie-limit to sum all data lower than this percentage limit to |
| 3040 |
avoid label overlap. |
| 3041 |
- Allow download of graphics as PNG images. |
| 3042 |
- Replace GD::Graph by the Flotr2 javascript library to draw graphics. |
| 3043 |
Patch by Guillaume Lelarge |
| 3044 |
- Add pie graphs for session, database, user and host. Add a --quiet |
| 3045 |
option to remove debug output and --progress to show a progress bar |
| 3046 |
during log parsing |
| 3047 |
- Add pie graph for Queries by type. |
| 3048 |
- Add graph for checkpoint write buffer per hours |
| 3049 |
- Allow log parsing without any log_line_prefix and extend it to be |
| 3050 |
defined by the user. Custom log_line prefix can be parsed using user |
| 3051 |
defined regex with command line option --regex-db and --regex-user. |
| 3052 |
For exemple the default regex of pgbadger to parse user and db name |
| 3053 |
from log_line_prefix can be written like this: |
| 3054 |
pgbadger -l mylogfile.log --regex-user="user=([^,]*)," \ |
| 3055 |
--regex-db="db=([^,]*)" |
| 3056 |
- Separe log_line_prefix from log level part in the parser to extend |
| 3057 |
log_line_prefix parsing |
| 3058 |
- If there is just one argument, assume it is the logfile and use |
| 3059 |
default value for all other parameters |
| 3060 |
- Add autodetection of log format (syslog or stderr) if none is given |
| 3061 |
with option -f |
| 3062 |
- Add --outfile option to dump output to a file instead of stdout. |
| 3063 |
Default filename is out.html or out.txt following the output format. |
| 3064 |
To dump to stdout set filename to - |
| 3065 |
- Add --version command line option to show current pgbadger version. |
| 3066 |
|
| 3067 |
Bug fix: |
| 3068 |
|
| 3069 |
- Rearrange x and y axis |
| 3070 |
- Fix legend opacity on graphics |
| 3071 |
- Rearrange Overall stats view |
| 3072 |
- Add more "normalization" on errors messages |
| 3073 |
- Fix samples error with normalyzed error instead of real error message |
| 3074 |
- Fix an other average size of temporary file decimal limit |
| 3075 |
- Force quiet mode when --progress is used |
| 3076 |
- Fix per sessions graphs |
| 3077 |
- Fix sort order of days/hours into hours array |
| 3078 |
- Fix sort order of days into graphics |
| 3079 |
- Remove display of locks, sessions and connections statistics when none |
| 3080 |
are available |
| 3081 |
- Fix display of empty column of checkpoint when no checkpoint was found |
| 3082 |
in log file |
| 3083 |
|