pgsql: track_io_timing logging: Don't special case 0 ms.

From: Peter Geoghegan <pg(at)bowt(dot)ie>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: track_io_timing logging: Don't special case 0 ms.
Date: 2021-08-27 20:35:12
Message-ID: E1mJiZE-0006Vy-3I@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

track_io_timing logging: Don't special case 0 ms.

Adjust track_io_timing related logging code added by commit 94d13d474d.
Make it consistent with other nearby autovacuum and autoanalyze logging
code by removing logic that suppressed zero millisecond outputs.

log_autovacuum_min_duration log output now reliably shows "read:" and
"write:" millisecond-based values in its report (when track_io_timing is
enabled).

Author: Peter Geoghegan <pg(at)bowt(dot)ie>
Reviewed-By: Stephen Frost <sfrost(at)snowman(dot)net>
Discussion: https://postgr.es/m/CAH2-WznW0FNxSVQMSRazAMYNfZ6DR_gr5WE78hc6E1CBkkJpzw@mail.gmail.com
Backpatch: 14-, where the track_io_timing logging was introduced.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/bda822554b96c6564911df95fcb898d6c30efe46

Modified Files
--------------
src/backend/access/heap/vacuumlazy.c | 15 +++++----------
src/backend/commands/analyze.c | 15 +++++----------
2 files changed, 10 insertions(+), 20 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Daniel Gustafsson 2021-08-27 21:09:23 pgsql: docs: clarify bgw_restart_time documentation
Previous Message Peter Geoghegan 2021-08-27 20:09:12 pgsql: Reorder log_autovacuum_min_duration log output.