darold / pgbadger

A fast PostgreSQL Log Analyzer
http://pgbadger.darold.net/
PostgreSQL License
3.55k stars 352 forks source link

Week numbers mixed in incremental reports #698

Closed hansgv closed 2 years ago

hansgv commented 3 years ago

Using pgbadger 11.6 latest with the --iso-week-number and --incremental options.

Clicking week numbers in the global index page opens the week's index page but the dates and data in that page are from the previous week.

darold commented 2 years ago

Yes there is no backward compatibility with previous weeks reports. If you want to fix that you will have to change the week number in the old sub directory names.

hansgv commented 2 years ago

@darold For clarity, this bug occurs even when I produce reports from scratch (no old reports sub-directories exist)

darold commented 2 years ago

Ok finallly I have understood the problem and was able to reproduce it. Commit 202050f fixes this issue.

hansgv commented 2 years ago

@darold I can confirm that this issue appears fixed when using the latest code.

darold commented 2 years ago

Great, thanks for the feedback, a new release is coming.