Re: per backend I/O statistics[
Michael Paquier <michael@paquier.xyz>
From: Michael Paquier <michael@paquier.xyz>
To: Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Cc: Nazir Bilal Yavuz <byavuz81@gmail.com>, Alvaro Herrera <alvherre@alvh.no-ip.org>, Kyotaro Horiguchi <horikyota.ntt@gmail.com>, pgsql-hackers@lists.postgresql.org
Date: 2024-11-25T07:18:54Z
Lists: pgsql-hackers
On Mon, Nov 25, 2024 at 07:12:56AM +0000, Bertrand Drouvot wrote: > Not sure here, could custom stats start incrementing before the database system > is ready to accept connections? In theory, that could be possible. Like pg_stat_io currently, I am ready to assume that it likely won't matter much. > The only cons that I can see is that we will not be able to merge the flush cb > but I don't think that's a blocker (the flush are done in shared memory so the > impact on performance should not be that much of an issue). The backend and I/O stats could begin diverging as a result of a new implementation detail, and the performance of the flushes don't worry me knowing at which frequency they happen on a live system. -- Michael
Commits
-
Rework handling of pending data for backend statistics
- 4feba03d8b92 18.0 landed
-
Rename some pgstats callbacks related to flush of entries
- 28de66cee5f4 18.0 landed
-
Relax regression test for fsync check of backend-level stats
- 546371599e76 18.0 landed
-
Add backend-level statistics to pgstats
- 9aea73fc61d4 18.0 landed
-
Extract logic filling pg_stat_get_io()'s tuplestore into its own routine
- ff7c40d7fd6a 18.0 landed
-
Tweak some comments related to variable-numbered stats in pgstat.c
- fee2b3ea2ecd 18.0 landed