Content-Length: 252589 | pFad | http://github.com/postgrespro/postgres/commit/e64c733bb1996e52a13f6fc4a1240703f607fa53

5D Flush WAL stats in bgwriter · postgrespro/postgres@e64c733 · GitHub
Skip to content

Commit e64c733

Browse files
committed
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
1 parent f0bd0b4 commit e64c733

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/backend/postmaster/bgwriter.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,7 @@ BackgroundWriterMain(void)
241241

242242
/* Report pending statistics to the cumulative stats system */
243243
pgstat_report_bgwriter();
244+
pgstat_report_wal(true);
244245

245246
if (FirstCallSinceLastCheckpoint())
246247
{

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/e64c733bb1996e52a13f6fc4a1240703f607fa53

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy