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: Remove bogus const qualifier on PageGetItem() argument
Date: Sun, 04 Jan 2026 15:05:44 +0000
Message-ID: <E1vcPfr-004SIu-15@gemulon.postgresql.org> (raw)

Remove bogus const qualifier on PageGetItem() argument

The function ends up casting away the const qualifier, so it was a
lie.  No callers appear to rely on the const qualifier on the
argument, so the simplest solution is to just remove it.

Reviewed-by: Andres Freund <andres@anarazel.de>
Discussion: https://www.postgresql.org/message-id/beusplf77varvhip6ryuhd2fchsx26qmmhduqz432bnglq634b%402dx4k6yxj...

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/0eadf1767ab8dec03135feaff8cd9e38881c1960

Modified Files
--------------
src/include/storage/bufpage.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)



Message-ID: <E1vcPfr-004SIu-15@gemulon.postgresql.org>
Permalink:  ../E1vcPfr-004SIu-15@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1vcPfr-004SIu-15@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: Remove bogus const qualifier on PageGetItem() argument
  In-Reply-To: <E1vcPfr-004SIu-15@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