Skip to content

Commit db69101

Browse files
committed
Fix description of I/O timing info for shared buffers in EXPLAIN (BUFFERS)
This fixes an error introduced by efb0ef9, that changed the description of this field to "shared/local" while these I/O timings relate to shared buffers. This information is available when track_io_timing is enabled. Note that HEAD has added new counters for local buffers in 295c36c, so there is no need to touch it. The description is updated to "shared" to be compatible with HEAD. Per discussion with Nazir Bilal Yavuz and Hubert Depesz Lubaczewski, whose EXPLAIN analyzer tool was not actually able to parse the previous term because of the slash character. Discussion: https://postgr.es/m/ZTCTiUqm_H3iBihl@paquier.xyz Backpatch-through: 15
1 parent 8ae8772 commit db69101

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/commands/explain.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3632,7 +3632,7 @@ show_buffer_usage(ExplainState *es, const BufferUsage *usage, bool planning)
36323632

36333633
if (has_timing)
36343634
{
3635-
appendStringInfoString(es->str, " shared/local");
3635+
appendStringInfoString(es->str, " shared");
36363636
if (!INSTR_TIME_IS_ZERO(usage->blk_read_time))
36373637
appendStringInfo(es->str, " read=%0.3f",
36383638
INSTR_TIME_GET_MILLISEC(usage->blk_read_time));

0 commit comments

Comments
 (0)