Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0684d19

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 YavuzReviewed-by: Matthias van de Meent, Kyotaro HoriguchiDiscussion:https://www.postgresql.org/message-id/CAN55FZ2FPYngovZstr%3D3w1KSEHe6toiZwrurbhspfkXe5UDocg%40mail.gmail.com
1 parent55e188a commit0684d19

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
@@ -242,6 +242,7 @@ BackgroundWriterMain(void)
242242

243243
/* Report pending statistics to the cumulative stats system */
244244
pgstat_report_bgwriter();
245+
pgstat_report_wal(true);
245246

246247
if (FirstCallSinceLastCheckpoint())
247248
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp