Re: Remove unneeded cast in heap_xlog_lock. - Mailing list pgsql-hackers

From Chao Li
Subject Re: Remove unneeded cast in heap_xlog_lock.
Date
Msg-id 4D99E889-BF09-4E5F-BD93-3E4262FEAF8D@gmail.com
Whole thread Raw
In response to Remove unneeded cast in heap_xlog_lock.  (Kirill Reshke <reshkekirill@gmail.com>)
Responses Re: Remove unneeded cast in heap_xlog_lock.
List pgsql-hackers


On Aug 21, 2025, at 22:10, Kirill Reshke <reshkekirill@gmail.com> wrote:

Hi!

I was looking at how PostgreSQL handles VM map bits, when I noticed $subj.
PFA small refactoring patch.

--
Best regards,
Kirill Reshke
<v1-0001-Remove-unneeded-cast-in-heap_xlog_lock.patch>


LGTM. BufferGetPage() returns a “Page” type, and the receiving variable “page” is of “Page” type as well, so the cast is not needed.

--
Chao Li (Evan)
HighGo Software Co., Ltd.
https://www.highgo.com/




pgsql-hackers by date:

Previous
From: torikoshia
Date:
Subject: Re: [Proposal] Expose internal MultiXact member count function for efficient monitoring
Next
From: Fujii Masao
Date:
Subject: Re: Don't treat virtual generated columns as missing statistics in vacuumdb --missing-stats-only