summaryrefslogtreecommitdiff
path: root/src/include/executor
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2023-10-19 13:39:38 +0900
committerMichael Paquier <michael@paquier.xyz>2023-10-19 13:39:38 +0900
commit295c36c0c1fa7b6befd0a3525c7f109e838c9448 (patch)
treed5367a109733fbfbefd2f17ca730b425c53cdcd6 /src/include/executor
parent13d00729d422c84b1764c24251abcc785ea4adb1 (diff)
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
Diffstat (limited to 'src/include/executor')
-rw-r--r--src/include/executor/instrument.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/executor/instrument.h b/src/include/executor/instrument.h
index 14c3e3f656c..d5d69941c52 100644
--- a/src/include/executor/instrument.h
+++ b/src/include/executor/instrument.h
@@ -35,6 +35,8 @@ typedef struct BufferUsage
int64 temp_blks_written; /* # of temp blocks written */
instr_time shared_blk_read_time; /* time spent reading shared blocks */
instr_time shared_blk_write_time; /* time spent writing shared blocks */
+ instr_time local_blk_read_time; /* time spent reading local blocks */
+ instr_time local_blk_write_time; /* time spent writing local blocks */
instr_time temp_blk_read_time; /* time spent reading temp blocks */
instr_time temp_blk_write_time; /* time spent writing temp blocks */
} BufferUsage;