diff options
author | Michael Paquier <michael@paquier.xyz> | 2023-12-14 09:59:47 +0100 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2023-12-14 09:59:47 +0100 |
commit | db69101a1d000d857a552e16e45f601adbb4dbc6 (patch) | |
tree | 576a841297c5c7190b021597da9eca0bda3485f5 | |
parent | 8ae87728c583eb05714bd01430945fb7c7a74a7c (diff) | |
download | postgresql-db69101a1d000d857a552e16e45f601adbb4dbc6.tar.gz postgresql-db69101a1d000d857a552e16e45f601adbb4dbc6.zip |
Fix description of I/O timing info for shared buffers in EXPLAIN (BUFFERS)
This fixes an error introduced by efb0ef909f60, 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 295c36c0c1fa, 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
-rw-r--r-- | src/backend/commands/explain.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/commands/explain.c b/src/backend/commands/explain.c index 8570b14f621..6c2e5c8a4f9 100644 --- a/src/backend/commands/explain.c +++ b/src/backend/commands/explain.c @@ -3632,7 +3632,7 @@ show_buffer_usage(ExplainState *es, const BufferUsage *usage, bool planning) if (has_timing) { - appendStringInfoString(es->str, " shared/local"); + appendStringInfoString(es->str, " shared"); if (!INSTR_TIME_IS_ZERO(usage->blk_read_time)) appendStringInfo(es->str, " read=%0.3f", INSTR_TIME_GET_MILLISEC(usage->blk_read_time)); |