On Fri, Aug 22, 2025 at 9:44 AM Chao Li <li.evan.c...@gmail.com> wrote: > On Aug 21, 2025, at 22:10, Kirill Reshke <reshkekir...@gmail.com> wrote: > I was looking at how PostgreSQL handles VM map bits, when I noticed $subj. > PFA small refactoring patch.
> LGTM. BufferGetPage() returns a “Page” type, and the receiving variable > “page” is of “Page” type as well, so the cast is not needed. If you run 'git grep', you'll find a lot more instances where the result of BufferGetPage() is explicitly cast to Page. git grep -rn "(Page) BufferGetPage" | wc -l 69 Although these casts are unnecessary for sure, I'm not sure if it's worth making the code changes to fix them. Thanks Richard