Add local_blk_{read|write}_time I/O timing statistics for local blocks
Michael Paquier <michael@paquier.xyz>
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
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/ref/explain.sgml | modified | +2 −2 |
| src/backend/commands/explain.c | modified | +22 −1 |
| src/backend/executor/instrument.c | modified | +6 −0 |
| src/backend/utils/activity/pgstat_io.c | modified | +4 −0 |
| src/include/executor/instrument.h | modified | +2 −0 |
| src/test/regress/expected/explain.out | modified | +4 −0 |
Documentation touched
Discussion
- pgBufferUsage.blk_{read|write}_time are zero although there are pgBufferUsage.local_blks_{read|written} 20 messages · 2023-09-15 → 2023-12-15