pg_stat_statements: Add local_blk_{read|write}_time
Michael Paquier <michael@paquier.xyz>
pg_stat_statements: Add local_blk_{read|write}_time
This commit adds to pg_stat_statements the two new fields for local
buffers introduced by 295c36c0c1fa, adding the time spent to read and
write these blocks. These are similar to what is done for temp and
shared blocks. This information available only if track_io_timing is
enabled.
Like for 5a3423ad8ee17, no version bump is required in the module.
Author: Nazir Bilal Yavuz
Reviewed-by: Robert Haas, Melanie Plageman
Discussion: https://postgr.es/m/CAN55FZ19Ss279mZuqGbuUNxka0iPbLgYuOQXqAKewrjNrp27VA@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| contrib/pg_stat_statements/expected/oldextversions.out | modified | +2 −0 |
| contrib/pg_stat_statements/pg_stat_statements--1.10--1.11.sql | modified | +2 −0 |
| contrib/pg_stat_statements/pg_stat_statements.c | modified | +13 −2 |
| doc/src/sgml/pgstatstatements.sgml | modified | +20 −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