Monitoring time of fsyncing WALs - Mailing list pgsql-hackers

From Konstantin Knizhnik
Subject Monitoring time of fsyncing WALs
Date
Msg-id 4a243897-0ad8-f471-aa40-242591f2476e@postgrespro.ru
Whole thread Raw
Responses Re: Monitoring time of fsyncing WALs
Re: Monitoring time of fsyncing WALs
List pgsql-hackers
I wonder why we are monitoring time of writing to WAL, but not time of 
fsyncing WAL segments?
Is there are principle reason for it or just because nobody added it yet?
If so, please find very small patch which adding WAIT_EVENT_WAL_FSYNC 
event type.

Our engineers in PgPro complain me that there is no information about 
time spent in syncing WALs...
Unfortunately Postgres still is not able to aggregate this statistic. 
But at least we have pg_wait_sampling extension for it:
https://github.com/postgrespro/pg_wait_sampling

-- 
Konstantin Knizhnik
Postgres Professional: http://www.postgrespro.com
The Russian Postgres Company


Attachment

pgsql-hackers by date:

Previous
From: Fujii Masao
Date:
Subject: Re: "wal receiver" process hang in syslog() while exiting afterreceiving SIGTERM while the postgres has been promoted.
Next
From: Peter Eisentraut
Date:
Subject: Re: Supporting tls-server-end-point as SCRAM channel binding forOpenSSL 1.0.0 and 1.0.1