postgresql/src/backend/storage
Andres Freund f30d62c2fc pgstat: Track more detailed relation IO statistics
Commit 28e626bde0 introduced the infrastructure for tracking more detailed IO
statistics. This commit adds the actual collection of the new IO statistics
for relations and temporary relations. See aforementioned commit for goals and
high-level design.

The changes in this commit are fairly straight-forward. The bulk of the change
is to passing sufficient information to the callsites of pgstat_count_io_op().

A somewhat unsightly detail is that it currently is hard to find a better
place to count fsyncs than in md.c, whereas the other pgstat_count_io_op()
calls are in bufmgr.c/localbuf.c. As the number of fsyncs is tied to md.c
implementation details, it's not obvious there is a better answer.

Author: Melanie Plageman <melanieplageman@gmail.com>
Reviewed-by: Andres Freund <andres@anarazel.de>
Discussion: https://postgr.es/m/20200124195226.lth52iydq2n2uilq@alap3.anarazel.de
2023-02-09 22:22:26 -08:00
..
buffer pgstat: Track more detailed relation IO statistics 2023-02-09 22:22:26 -08:00
file Zero initialize uses of instr_time about to trigger compiler warnings 2023-01-20 21:16:47 -08:00
freespace Update copyright for 2023 2023-01-02 15:00:37 -05:00
ipc Remove useless casts to (void *) in arguments of some system functions 2023-02-07 06:57:59 +01:00
large_object Update copyright for 2023 2023-01-02 15:00:37 -05:00
lmgr Fix bugs in GetSafeSnapshotBlockingPids(), introduced in 9600371764 2023-02-08 18:19:36 -08:00
page Update copyright for 2023 2023-01-02 15:00:37 -05:00
smgr pgstat: Track more detailed relation IO statistics 2023-02-09 22:22:26 -08:00
sync Remove useless casts to (void *) in hash_search() calls 2023-02-06 09:41:01 +01:00
Makefile Refactor the fsync queue for wider use. 2019-04-04 23:38:38 +13:00
meson.build Update copyright for 2023 2023-01-02 15:00:37 -05:00