Re: Remove unneeded cast in heap_xlog_lock.
От | Richard Guo |
---|---|
Тема | Re: Remove unneeded cast in heap_xlog_lock. |
Дата | |
Msg-id | CAMbWs4-rZAqry+vmrECn6g7T5R97max67tC1CrAdTO02fx5k1g@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: Remove unneeded cast in heap_xlog_lock. (Chao Li <li.evan.chao@gmail.com>) |
Ответы |
Re: Remove unneeded cast in heap_xlog_lock.
Re: Remove unneeded cast in heap_xlog_lock. |
Список | pgsql-hackers |
On Fri, Aug 22, 2025 at 9:44 AM Chao Li <li.evan.chao@gmail.com> wrote: > On Aug 21, 2025, at 22:10, Kirill Reshke <reshkekirill@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 isnot 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
В списке pgsql-hackers по дате отправления: