| From: | Tatsuya Kawata <kawatatatsuya0913(at)gmail(dot)com> |
|---|---|
| To: | Postgres hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
| Subject: | [Patch] Fix typo in pg_stat_us_to_ms() |
| Date: | 2026-07-02 13:36:01 |
| Message-ID: | CAHza6qfek15rehnA0GXMCpF2z=Gy6C+3vmcWCMVkU4JiRD8k7g@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
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
| Attachment | Content-Type | Size |
|---|---|---|
| v1-0001-Fix-typo-in-pg_stat_us_to_ms.patch | application/octet-stream | 890 bytes |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Henson Choi | 2026-07-02 14:06:19 | Re: CAST(... ON DEFAULT) - WIP build on top of Error-Safe User Functions |
| Previous Message | Amit Langote | 2026-07-02 13:24:10 | Re: JSON_VALUE/JSON_TABLE DEFAULT expression ignores RETURNING typmod |