diff options
author | Peter Eisentraut <peter@eisentraut.org> | 2021-08-07 12:09:22 +0200 |
---|---|---|
committer | Peter Eisentraut <peter@eisentraut.org> | 2021-08-07 12:09:22 +0200 |
commit | d954019f0a60bb989ef6fe8e478b764d0d5f301c (patch) | |
tree | dc6ea02f4ce3e4f383fb05e2b99c3fae62b84cd0 /src/backend/commands/analyze.c | |
parent | e5f6493e3584ea7eec1f992f87639e7f186ae03e (diff) | |
download | postgresql-d954019f0a60bb989ef6fe8e478b764d0d5f301c.tar.gz postgresql-d954019f0a60bb989ef6fe8e478b764d0d5f301c.zip |
Message style improvements
Diffstat (limited to 'src/backend/commands/analyze.c')
-rw-r--r-- | src/backend/commands/analyze.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/backend/commands/analyze.c b/src/backend/commands/analyze.c index 0c9591415e4..0099a04bbe6 100644 --- a/src/backend/commands/analyze.c +++ b/src/backend/commands/analyze.c @@ -778,7 +778,7 @@ do_analyze_rel(Relation onerel, VacuumParams *params, * reads which are also picked up by track_io_timing, if enabled, * the 'average write rate' is actually talking about the rate of * pages being dirtied, not being written out, so it's typical to - * have a non-zero 'avg write rate' while I/O Timings only reports + * have a non-zero 'avg write rate' while I/O timings only reports * reads. * * It's not clear that an ANALYZE will ever result in @@ -813,12 +813,14 @@ do_analyze_rel(Relation onerel, VacuumParams *params, read_rate, write_rate); if (track_io_timing) { - appendStringInfoString(&buf, _("I/O Timings:")); + appendStringInfoString(&buf, _("I/O timings:")); if (pgStatBlockReadTime - startreadtime > 0) - appendStringInfo(&buf, _(" read=%.3f"), + appendStringInfo(&buf, _(" read: %.3f ms"), (double) (pgStatBlockReadTime - startreadtime) / 1000); + if ((pgStatBlockReadTime - startreadtime > 0) && (pgStatBlockWriteTime - startwritetime > 0)) + appendStringInfoString(&buf, _(",")); if (pgStatBlockWriteTime - startwritetime > 0) - appendStringInfo(&buf, _(" write=%.3f"), + appendStringInfo(&buf, _(" write: %.3f ms"), (double) (pgStatBlockWriteTime - startwritetime) / 1000); appendStringInfoChar(&buf, '\n'); } |