]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Flush WAL stats in bgwriter
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Mon, 2 Oct 2023 09:39:35 +0000 (12:39 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Mon, 2 Oct 2023 09:49:29 +0000 (12:49 +0300)
commit0684d1949fb43ec21480db627cd13a282ca41f6e
tree9030b382901711d5fd921751e0013f696894fafe
parent55e188a15e8ab0fdafca8cc612f9e0d1a1802bde
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.gmail.com
src/backend/postmaster/bgwriter.c