Skip to content

Problem in log parser logic #1089

@0xgouda

Description

@0xgouda

Describe the bug
The current log parser implementation starts reading from offset zero on opening new log file, with configs like log_truncate_on_rotation = off and log_file_name = postgresql-%H, the files will be reused and not truncated, hence pgwatch will read all of them from the beginning each time they become the latest modified file.

Expected behavior
pgwatch should start from the offset it was it the last time it saw the file.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinggood first issueGood for newcomersmetricsMetrics related issues

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions