From: | Stepan Neretin <slpmcf(at)gmail(dot)com> |
---|---|
To: | Gregory Burd <greg(at)burd(dot)me> |
Cc: | "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: [PATCH] Fix references in comments, and sync up heap_page_is_all_visible() with heap_page_prune_and_freeze() |
Date: | 2025-05-09 17:22:12 |
Message-ID: | CA+Yyo5R-tge7fAr_WjpLwGYGU+hu2NGfxTZQBbn0BVXjMnjx_Q@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Tue, May 6, 2025 at 11:08 PM Gregory Burd <greg(at)burd(dot)me> wrote:
> While working on [1] I found an outdated comment in
> heap_page_is_all_visible() and two other small fixes.
>
> 0001: Updates that comment so future authors know that this "stripped down
> function" should retain the logic in heap_page_prune_and_freeze(), not
> lazy_scan_prune() as was the case before 6dbb490.
> 0002: Mimics the same loop logic as in heap_page_is_all_visible() so as to
> a) stay in sync and b) benefit from the mentioned CPU prefetching
> optimization.
> 0003: Moves the ItemSetPointer() just a bit further down in the function
> again to a) stay in sync and b) to sometimes avoid that tiny overhead.
>
> best,
>
> -greg
>
> PS: per-community standards I've switched to my personal email address
> rather than gregburd(at)amazon(dot)com
>
> [1]
> https://www.postgresql.org/message-id/flat/78574B24-BE0A-42C5-8075-3FA9FA63B8FC(at)amazon(dot)com
Hi, looks good for me.
Best regards,
Stepan Neretin.
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Geoghegan | 2025-05-09 17:22:33 | Re: Adding skip scan (including MDAM style range skip scan) to nbtree |
Previous Message | Daniel Gustafsson | 2025-05-09 17:21:17 | Fix incorrect order of params in comment |