Hi, On 2023-10-26 15:28:32 +0900, Michael Paquier wrote: > On top of that pg_stat_io is now for block-based I/O operations, so > that does not fit entirely in the picture, though I guess that Melanie > has thought more on the matter than me. That may be also a matter of > taste.
I strongly disagree. A significant part of the design of pg_stat_io was to make it possible to collect multiple sources of IO in a single view, so that sysadmins don't have to look in dozens of places to figure out what is causing what kind of IO. We should over time collect all sources of IO in pg_stat_io. For some things we might want to also have more detailed information in other views (e.g. it doesn't make sense to track FPIs in pg_stat_io, but does make sense in pg_stat_wal) - but that should be in addition, not instead of. Greetings, Andres Freund