Re: Show WAL write and fsync stats in pg_stat_io
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Nazir Bilal Yavuz <byavuz81@gmail.com>
Cc: Michael Paquier <michael@paquier.xyz>,
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-02-06T02:06:24Z
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
Nazir Bilal Yavuz <byavuz81@gmail.com> writes: > On Wed, 5 Feb 2025 at 21:32, Tom Lane <tgl@sss.pgh.pa.us> wrote: >> Locally, the test added by this commit fails like so: > My thoughts when adding this test was that startup process must do the > WAL read I/O while server is starting, i.e.: Oh! The problem is much simpler than I thought, then, and not particularly related to configure options. I was misled by not trying repeated tests, but: $ ./configure ... $ make; make install $ initdb ...; pg_ctl start $ make installcheck ... all OK ... $ make installcheck ... fails ... $ make installcheck ... fails ... $ make installcheck ... fails ... $ make installcheck ... fails ... Basically, this test is broken because it assumes that the server is freshly started. That's not a scenario the buildfarm runs the core tests under, unfortunately, but it is one commonly used in hand testing. regards, tom lane