Re: Show WAL write and fsync stats in pg_stat_io
Ranier Vilela <ranier.vf@gmail.com>
From: Ranier Vilela <ranier.vf@gmail.com>
To: Michael Paquier <michael@paquier.xyz>
Cc: Nazir Bilal Yavuz <byavuz81@gmail.com>,
Bertrand Drouvot <bertranddrouvot.pg@gmail.com>, Melanie Plageman <melanieplageman@gmail.com>,
Andres Freund <andres@anarazel.de>, pgsql-hackers <pgsql-hackers@postgresql.org>, "bharath.rupireddyforpostgres@gmail.com"
<bharath.rupireddyforpostgres@gmail.com>, Thomas Munro <thomas.munro@gmail.com>
Date: 2025-03-19T12:10:00Z
Lists: pgsql-hackers
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Fix copy-paste error related to the autovacuum launcher in pgstat_io.c
- 17d8bba6dad1 18.0 landed
-
Move SQL tests of pg_stat_io for WAL data to recovery test 029_stats_restart
- 428fadb7e97e 18.0 landed
-
Add data for WAL in pg_stat_io and backend statistics
- a051e71e28a1 18.0 landed
-
Improve comment on top of pgstat_count_io_op_time()
- b998fedab74c 18.0 landed
-
Refactor pgstat_prepare_io_time() with an input argument instead of a GUC
- 3c9d9acae0bc 17.0 landed
Em ter., 18 de mar. de 2025 às 20:34, Michael Paquier <michael@paquier.xyz> escreveu: > On Tue, Mar 18, 2025 at 04:13:15PM +0300, Nazir Bilal Yavuz wrote: > > Thanks for the report! Yes, it is an oversight on my part. > > No worries. It's most likely me while reviewing the whole as I've > reordered these blocks a bit while going through the patch. > > This has little consequences for the end user, as the read, read_bytes > and read_time should show up as 0 instead of NULL in the pg_stat_io > view for the two WAL rows. Still it is confusing to show zeros, and > it makes queries of pg_stat_io a bit cheaper. Will fix in a bit. > Thank you Michael. best regards, Ranier Vilela