pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Mark ItemPointer arguments as const throughout
Date: Thu, 30 Oct 2025 13:18:20 +0000
Message-ID: <E1vESXk-004FB0-1P@gemulon.postgresql.org> (raw)

Mark ItemPointer arguments as const throughout

This is a follow up 991295f.  I searched over src/ and made all
ItemPointer arguments as const as much as possible.

Note: We cut out from the original patch the pieces that would have
created incompatibilities in the index or table AM APIs.  Those could
be considered separately.

Author: Chao Li <li.evan.chao@gmail.com>
Discussion: https://www.postgresql.org/message-id/CAEoWx2nBaypg16Z5ciHuKw66pk850RFWw9ACS2DqqJ_AkKeRsw%40mail.gma...

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/e1ac846f3d2836dcfa0ad15310e28d0a0b495500

Modified Files
--------------
src/backend/access/common/tidstore.c       |  2 +-
src/backend/access/hash/hashsort.c         |  2 +-
src/backend/access/heap/heapam.c           | 34 +++++++++++++++---------------
src/backend/access/nbtree/nbtdedup.c       |  2 +-
src/backend/access/nbtree/nbtsearch.c      |  4 ++--
src/backend/access/nbtree/nbtsort.c        |  4 ++--
src/backend/access/nbtree/nbtsplitloc.c    |  4 ++--
src/backend/access/spgist/spgdoinsert.c    |  2 +-
src/backend/access/spgist/spgutils.c       |  2 +-
src/backend/access/spgist/spgvacuum.c      |  2 +-
src/backend/catalog/indexing.c             |  6 +++---
src/backend/executor/execIndexing.c        |  8 +++----
src/backend/storage/lmgr/predicate.c       |  8 +++----
src/backend/utils/adt/tid.c                |  6 +++---
src/backend/utils/sort/tuplesortvariants.c |  2 +-
src/include/access/hash.h                  |  2 +-
src/include/access/heapam.h                | 12 +++++------
src/include/access/nbtree.h                |  2 +-
src/include/access/spgist_private.h        |  4 ++--
src/include/access/tidstore.h              |  2 +-
src/include/catalog/index.h                |  2 +-
src/include/catalog/indexing.h             |  6 +++---
src/include/executor/executor.h            |  4 ++--
src/include/storage/predicate.h            |  4 ++--
src/include/utils/tuplesort.h              |  2 +-
25 files changed, 64 insertions(+), 64 deletions(-)



view thread (2+ messages)

Message-ID: <E1vESXk-004FB0-1P@gemulon.postgresql.org>
Permalink:  ../E1vESXk-004FB0-1P@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1vESXk-004FB0-1P@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: peter@eisentraut.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Mark ItemPointer arguments as const throughout
  In-Reply-To: <E1vESXk-004FB0-1P@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox