Track shared buffer hits in pg_stat_io

Andres Freund <andres@anarazel.de>

Commit: 8aaa04b32d790da595684de58ae4fc2db96becff
Author: Andres Freund <andres@anarazel.de>
Date: 2023-03-31T02:24:21Z
Releases: 16.0
Track shared buffer hits in pg_stat_io

Among other things, this should make it easier to calculate a useful cache hit
ratio by excluding buffer reads via buffer access strategies. As buffer access
strategies reuse buffers (and thus evict the prior buffer contents), it is
normal to see reads on repeated scans of the same data.

Author: Melanie Plageman <melanieplageman@gmail.com>
Reviewed-by: Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Reviewed-by: Andres Freund <andres@anarazel.de>
Discussion: https://postgr.es/m/CAAKRu_beMa9Hzih40%3DXPYqhDVz6tsgUGTrhZXRo%3Dunp%2Bszb%3DUA%40mail.gmail.com

Files

Documentation touched

Discussion