Re: Re: pg_test_timing: fix unit typo and widen diff type

From: Fujii Masao <masao(dot)fujii(at)gmail(dot)com>
To: "wang(dot)xiao(dot)peng" <wxp_728(at)163(dot)com>
Cc: Chao Li <li(dot)evan(dot)chao(at)gmail(dot)com>, lukas(at)fittl(dot)com, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Hannu Krosing <hannuk(at)google(dot)com>
Subject: Re: Re: pg_test_timing: fix unit typo and widen diff type
Date: 2026-04-22 07:04:16
Message-ID: CAHGQGwEM=s5vXPpXoismwRMNCnAmwwMJPnQEQYbPFTJGouV0rQ@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, Apr 9, 2026 at 3:13 PM wang.xiao.peng <wxp_728(at)163(dot)com> wrote:
> Just finished reviewing the v3 patches - looks good to me. The pg_leftmost_one_pos64 fix is spot on, and using INT64_FORMAT for the error message is the right approach.

Since pg_leftmost_one_pos64() can return up to 63, should the size of
histogram[] be changed from 32 to 64? If we want to display the full
histogram[] in the output, max_bit in output() would also need to be set to 63.
Alternatively, it may be fine to keep max_bit = 31 and show only
the first 32 histogram entries.

Patch 0001 looks good to me.

Regards,

--
Fujii Masao

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2026-04-22 07:11:23 Re: First draft of PG 19 release notes
Previous Message Kirill Reshke 2026-04-22 06:49:32 Cleanup explain_memoize function after test