mirror of https://github.com/postgres/postgres
The counters saved from pgWalUsage, used for the difference calculations
when flushing the backend WAL stats, are updated when calling
pgstat_flush_backend() under PGSTAT_BACKEND_FLUSH_WAL, and not
pgstat_report_wal(). The comment updated in this commit referenced the
latter, but it is perfectly OK to flush the backend stats independently
of the WAL stats.
Noticed while looking at this area of the code, introduced by
76def4cdd7
as a copy-pasto.
Backpatch-through: 18
master
parent
e351e5c4fe
commit
09119238a1
Loading…
Reference in new issue