Add local_blk_{read|write}_time I/O timing statistics for local blocks
authorMichael Paquier <[email protected]>
Thu, 19 Oct 2023 04:39:38 +0000 (13:39 +0900)
committerMichael Paquier <[email protected]>
Thu, 19 Oct 2023 04:39:38 +0000 (13:39 +0900)
commit295c36c0c1fa7b6befd0a3525c7f109e838c9448
treed5367a109733fbfbefd2f17ca730b425c53cdcd6
parent13d00729d422c84b1764c24251abcc785ea4adb1
Add local_blk_{read|write}_time I/O timing statistics for local blocks

There was no I/O timing statistics for counting read and write timings
on local blocks, contrary to the counterparts for temp and shared
blocks.  This information is available when track_io_timing is enabled.

The output of EXPLAIN is updated to show this information.  An update of
pg_stat_statements is planned next.

Author: Nazir Bilal Yavuz
Reviewed-by: Robert Haas, Melanie Plageman
Discussion: https://postgr.es/m/CAN55FZ19Ss279mZuqGbuUNxka0iPbLgYuOQXqAKewrjNrp27VA@mail.gmail.com
doc/src/sgml/ref/explain.sgml
src/backend/commands/explain.c
src/backend/executor/instrument.c
src/backend/utils/activity/pgstat_io.c
src/include/executor/instrument.h
src/test/regress/expected/explain.out