Re: Mark ItemPointer arguments as const thoughoutly
Chao Li <li.evan.chao@gmail.com>
From: Chao Li <li.evan.chao@gmail.com>
To: Peter Eisentraut <peter@eisentraut.org>
Cc: Postgres hackers <pgsql-hackers@lists.postgresql.org>
Date: 2025-10-30T14:18:24Z
Lists: pgsql-hackers
Hi Peter, > On Oct 30, 2025, at 21:30, Peter Eisentraut <peter@eisentraut.org> wrote: > > I have committed most of this patch. Thank you so much for committing my patch and for your guidance. I’m still ramping up on PostgreSQL development, and your guidance has been super helpful to me. > > I didn't like the few places in itemptr.h where you changed an existing ItemPointerData* back to ItemPointer, so I left those out. > > More importantly, some of the proposed changes change the signatures of callback functions in the index or table AM APIs. (And also the documentation wasn't updated.) This would break source code compatibility with existing extensions that use those APIs. There are have been previous proposals like this in [0], [1] where the changes to those APIs were not committed. And your other patch 'Mark function arguments of type "Datum *" as "const Datum *" where possible' might have similar problems (although it looks like it's touching different places than [0] and [1]). So I left those changes out of what I committed. I will revisit that patch once I am back from vacation. Best regards, -- Chao Li (Evan) HighGo Software Co., Ltd. https://www.highgo.com/
Commits
-
Mark ItemPointer arguments as const throughout
- e1ac846f3d28 19 (unreleased) landed
-
const-qualify ItemPointer comparison functions
- 3479a0f823d5 19 (unreleased) landed
-
Remove Item type
- 76acf4b722fa 19 (unreleased) cited