pgsql: const-qualify ItemPointer comparison functions

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: const-qualify ItemPointer comparison functions
Date: 2025-10-30 09:18:27
Message-ID: E1vEOnb-004Dmv-04@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

const-qualify ItemPointer comparison functions

Add const qualifiers to ItemPointerEquals() and ItemPointerCompare().
This will allow further changes up the stack. It also complements
commit aeb767ca0b0, as we now have all of itemptr.h appropriately
const-qualified.

Author: Chao Li <li(dot)evan(dot)chao(at)gmail(dot)com>
Discussion: https://www.postgresql.org/message-id/flat/CAEoWx2nBaypg16Z5ciHuKw66pk850RFWw9ACS2DqqJ_AkKeRsw(at)mail(dot)gmail(dot)com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/3479a0f823d5a6c3ec61dff6b11ea5250389e56a

Modified Files
--------------
src/backend/storage/page/itemptr.c | 4 ++--
src/include/storage/itemptr.h | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2025-10-30 10:06:28 pgsql: docs: Link to the correct protocol version inspection function
Previous Message Peter Eisentraut 2025-10-30 07:40:41 pgsql: formatting.c cleanup: Remove unnecessary extra line breaks in er