mirror of
https://github.com/postgres/postgres.git
synced 2025-07-05 07:21:24 +03:00
New GUC, track_iotiming, to track I/O timings.
Currently, the only way to see the numbers this gathers is via EXPLAIN (ANALYZE, BUFFERS), but the plan is to add visibility through the stats collector and pg_stat_statements in subsequent patches. Ants Aasma, reviewed by Greg Smith, with some further changes by me.
This commit is contained in:
@ -145,4 +145,6 @@ BufferUsageAccumDiff(BufferUsage *dst,
|
||||
dst->local_blks_written += add->local_blks_written - sub->local_blks_written;
|
||||
dst->temp_blks_read += add->temp_blks_read - sub->temp_blks_read;
|
||||
dst->temp_blks_written += add->temp_blks_written - sub->temp_blks_written;
|
||||
INSTR_TIME_ACCUM_DIFF(dst->time_read, add->time_read, sub->time_read);
|
||||
INSTR_TIME_ACCUM_DIFF(dst->time_write, add->time_write, sub->time_write);
|
||||
}
|
||||
|
Reference in New Issue
Block a user