pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <heikki.linnakangas@iki.fi>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Flush WAL stats in bgwriter
Date: Mon, 02 Oct 2023 10:08:36 +0000
Message-ID: <E1qnFqu-0077AP-Bo@gemulon.postgresql.org> (raw)

Flush WAL stats in bgwriter

bgwriter can write out WAL, but did not flush the WAL pgstat counters,
so the writes were not seen in pg_stat_wal.

Back-patch to v14, where pg_stat_wal was introduced.

Author: Nazir Bilal Yavuz
Reviewed-by: Matthias van de Meent, Kyotaro Horiguchi
Discussion: https://www.postgresql.org/message-id/CAN55FZ2FPYngovZstr%3D3w1KSEHe6toiZwrurbhspfkXe5UDocg%40mail.g...

Branch
------
REL_16_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/4a97a43a73cbdb883b61161df35454696b96b336

Modified Files
--------------
src/backend/postmaster/bgwriter.c | 1 +
1 file changed, 1 insertion(+)



view thread (4+ messages)  latest in thread

Message-ID: <E1qnFqu-0077AP-Bo@gemulon.postgresql.org>
Permalink:  ../E1qnFqu-0077AP-Bo@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1qnFqu-0077AP-Bo@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: heikki.linnakangas@iki.fi, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Flush WAL stats in bgwriter
  In-Reply-To: <E1qnFqu-0077AP-Bo@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox