]> git.ipfire.org Git - thirdparty/postgresql.git/commit
pg_test_timing: fix unit in backward-clock warning
authorFujii Masao <fujii@postgresql.org>
Thu, 23 Apr 2026 23:59:14 +0000 (08:59 +0900)
committerFujii Masao <fujii@postgresql.org>
Fri, 24 Apr 2026 00:04:32 +0000 (09:04 +0900)
commitfb5acf2d8f2eb2a91f59a2e790a23d1c45d9de19
tree9e7266a881b468e8948eec8fffd8665ee4042c93
parentf76685b250c12f7449a3938b9a27befa812057c4
pg_test_timing: fix unit in backward-clock warning

pg_test_timing reports timing differences in nanoseconds in master, and
in microseconds in v14 through v18, but previously the backward-clock
warning incorrectly labeled the value as milliseconds.

This commit fixes the warning message to use "ns" in master and
"us" in v14 through v18, matching the actual unit being reported.

Backpatch to all supported versions.

Author: Chao Li <lic@highgo.com>
Reviewed-by: Lukas Fittl <lukas@fittl.com>
Reviewed-by: Xiaopeng Wang <wxp_728@163.com>
Reviewed-by: Fujii Masao <masao.fujii@gmail.com>
Discussion: https://postgr.es/m/F780CEEB-A237-4302-9F55-60E9D8B6533D@gmail.com
Backpatch-through: 14
src/bin/pg_test_timing/pg_test_timing.c