Add wait event for fsync of WAL segments

Michael Paquier <michael@paquier.xyz>

Commit: c55de5e5123ce58ee19a47c08425949599285041
Author: Michael Paquier <michael@paquier.xyz>
Date: 2018-07-02T13:19:46Z
Releases: 12.0
Add wait event for fsync of WAL segments

This has been visibly a forgotten spot in the first implementation of
wait events for I/O added by 249cf07, and what has been missing is a
fsync call for WAL segments which is a wrapper reacting on the value of
GUC wal_sync_method.

Reported-by: Konstantin Knizhnik
Author: Konstantin Knizhnik
Reviewed-by: Craig Ringer, Michael Paquier
Discussion: https://postgr.es/m/4a243897-0ad8-f471-aa40-242591f2476e@postgrespro.ru

Files

PathChange+/−
doc/src/sgml/monitoring.sgml modified +4 −0
src/backend/access/transam/xlog.c modified +2 −0
src/backend/postmaster/pgstat.c modified +3 −0
src/include/pgstat.h modified +1 −0

Documentation touched

Discussion