Aiven-Open / pghoard

PostgreSQL® backup and restore service
http://aiven-open.github.io/pghoard/
Apache License 2.0
1.32k stars 97 forks source link

Backport of "Ensure progress metric is updated frequently during basebackup" #542

Closed nicois closed 2 years ago

nicois commented 2 years ago

Equivalent to https://github.com/aiven/pghoard/pull/540, applied to the most recently tagged release.

Without this, the pghoard basebackup progress is not emitted frequently enough to reliably incorporate into prometheus metrics. With this PR, we see progress each time a chunk is processed: image