Re: Fix floating-point noise in pg_stat_us_to_ms()

From: John Naylor <johncnaylorls(at)gmail(dot)com>
To: Bertrand Drouvot <bertranddrouvot(dot)pg(at)gmail(dot)com>
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: Fix floating-point noise in pg_stat_us_to_ms()
Date: 2026-07-02 06:38:54
Message-ID: CANWCAZY1R0FX_3pu=A0=do7u-mP0coM2ReXXCF7GxvhPwO4ssA@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, Jul 1, 2026 at 4:05 PM John Naylor <johncnaylorls(at)gmail(dot)com> wrote:
>
> On Mon, Jun 29, 2026 at 2:02 PM Bertrand Drouvot
> <bertranddrouvot(dot)pg(at)gmail(dot)com> wrote:
> > Given that / 1000.0 is the most common way to do this kind of computation in the
> > code tree, I think that it makes sense to update pg_stat_us_to_ms() to do so.
>
> +1, I'll take care of this.

Pushed.

--
John Naylor
Amazon Web Services

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Amit Kapila 2026-07-02 06:48:16 Re: DOCS - Clarify that REFRESH SEQUENCES might be using stale publication data
Previous Message Shlok Kyal 2026-07-02 06:29:45 Re: Include sequences in publications created by pg_createsubscriber