]> git.ipfire.org Git - thirdparty/postgresql.git/commit
track_io_timing logging: Don't special case 0 ms.
authorPeter Geoghegan <pg@bowt.ie>
Fri, 27 Aug 2021 20:33:58 +0000 (13:33 -0700)
committerPeter Geoghegan <pg@bowt.ie>
Fri, 27 Aug 2021 20:33:58 +0000 (13:33 -0700)
commit6a1095234e0fcfa5c2f618c7c841e8ffe3c6c712
tree3b81257eb3bd9501990948c9e0a5521b3d722fdb
parentfd134f374ef7a8cc0b2d878a92dfe2c7088e084b
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@bowt.ie>
Reviewed-By: Stephen Frost <sfrost@snowman.net>
Discussion: https://postgr.es/m/CAH2-WznW0FNxSVQMSRazAMYNfZ6DR_gr5WE78hc6E1CBkkJpzw@mail.gmail.com
Backpatch: 14-, where the track_io_timing logging was introduced.
src/backend/access/heap/vacuumlazy.c
src/backend/commands/analyze.c