]> 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:50:32 +0000 (12:50 +0300)
commit594001864a36a1b9d24dec618cf5f629d7cc3caa
treebf131b0f4bc7b516814903330d0560129b8dd3cf
parentcf12c4fd2912c23083a990febe55f79d0253a554
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