| From: | Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com> |
|---|---|
| To: | wenhui qiu <qiuwenhuifx(at)gmail(dot)com> |
| Cc: | Matthias van de Meent <boekewurm+postgres(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
| Subject: | Re: Vectorize pg_visibility.pg_visibility_map_summary |
| Date: | 2025-12-23 19:40:35 |
| Message-ID: | CAD21AoAJSi=wFVW_LgAWXGR0L1Z2jOK0g8=x8Bmc5g4iE4gQWA@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On Mon, Dec 22, 2025 at 8:03 PM wenhui qiu <qiuwenhuifx(at)gmail(dot)com> wrote:
>
> Hi
>
> > It looks like a reasonable idea as it also simplifies the
> > pg_visibility_map_summary() function. I'm going to push it, barring
> > any objections.
> Obviously no objections, Using visibilitymap_count() simplifies the code and improves performance, with no behavior change.
>
> Thanks
>
>
> On Tue, Dec 23, 2025 at 6:17 AM Matthias van de Meent <boekewurm+postgres(at)gmail(dot)com> wrote:
>>
>> Hi,
>>
>> On Mon, 22 Dec 2025 at 23:04, Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com> wrote:
>> > On Mon, Dec 22, 2025 at 1:28 PM Matthias van de Meent
>> > <boekewurm+postgres(at)gmail(dot)com> wrote:
>> > > Here's one small patch that makes it use the visibilitymap_count() API
>> > > for pg_visibility_map_summary(), replacing its own bespoke counting
>> > > mechanism with the primary implementation that has vectorized
>> > > optimizations, thus reducing the overhead of
>> > > pg_visibility_map_summary.
>> > >
>> >
>> > It looks like a reasonable idea as it also simplifies the
>> > pg_visibility_map_summary() function. I'm going to push it, barring
>> > any objections.
>>
>> Obviously no objections from me, and, thanks!
>>
Pushed.
Regards,
--
Masahiko Sawada
Amazon Web Services: https://aws.amazon.com
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2025-12-23 20:07:07 | Re: NLS: use gettext() to translate system error messages |
| Previous Message | Jeff Davis | 2025-12-23 18:46:08 | Re: NLS: use gettext() to translate system error messages |