pgsql: pg_test_timing: fix unit in backward-clock warning - Mailing list pgsql-committers

From Fujii Masao
Subject pgsql: pg_test_timing: fix unit in backward-clock warning
Date
Msg-id E1wG43O-002Pjp-1d@gemulon.postgresql.org
Whole thread
List pgsql-committers
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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/019cc9962bdbe2a3aaeb1f384d7a0b0d494fc311

Modified Files
--------------
src/bin/pg_test_timing/pg_test_timing.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Back-patch addition of PGDLLIMPORT to un-break Windows BF animal
Next
From: Fujii Masao
Date:
Subject: pgsql: pg_test_timing: fix unit in backward-clock warning