Re: Remove unneeded cast in heap_xlog_lock.

Michael Paquier <michael@paquier.xyz>

From: Michael Paquier <michael@paquier.xyz>
To: Richard Guo <guofenglinux@gmail.com>
Cc: Chao Li <li.evan.chao@gmail.com>, Kirill Reshke <reshkekirill@gmail.com>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2025-08-22T05:23:22Z
Lists: pgsql-hackers
On Fri, Aug 22, 2025 at 10:41:15AM +0900, Richard Guo wrote:
> Although these casts are unnecessary for sure, I'm not sure if it's
> worth making the code changes to fix them.

That's sort of the point.  This is not code that needs to be fixed,
because it's not broken.
--
Michael

Commits

  1. Remove unneeded casts of BufferGetPage() result