[Patch] Fix typo in pg_stat_us_to_ms()

Tatsuya Kawata <kawatatatsuya0913@gmail.com>

From: Tatsuya Kawata <kawatatatsuya0913@gmail.com>
To: Postgres hackers <pgsql-hackers@lists.postgresql.org>
Date: 2026-07-02T13:36:01Z
Lists: pgsql-hackers

Attachments

Hi,

While reading pgstatfuncs.c, I noticed a small inconsistency in
pg_stat_us_to_ms().

The function converts microseconds to milliseconds, but the parameter
is named val_ms, which suggests the opposite direction.

Attached is a trivial patch renaming the parameter to val_us.

Regards,
Tatsuya Kawata

Commits

  1. Fix typo in pg_stat_us_to_ms()