pgsql: Fix incorrect comment in pgstat_backend.c - Mailing list pgsql-committers

From Michael Paquier
Subject pgsql: Fix incorrect comment in pgstat_backend.c
Date
Msg-id E1utx0S-000NcW-2B@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Fix incorrect comment in pgstat_backend.c

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
76def4cdd7c2 as a copy-pasto.

Backpatch-through: 18

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/09119238a18191dea3deed635a2b2a6ffe904932

Modified Files
--------------
src/backend/utils/activity/pgstat_backend.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Make libpq_pipeline.c shorter and more uniform via helper functi
Next
From: Dean Rasheed
Date:
Subject: pgsql: Fix replica identity check for INSERT ON CONFLICT DO UPDATE.