pgsql: Remove bogus const qualifier on PageGetItem() argument

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Remove bogus const qualifier on PageGetItem() argument
Date: 2026-01-04 15:05:44
Message-ID: E1vcPfr-004SIu-15@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(at)anarazel(dot)de>
Discussion: https://www.postgresql.org/message-id/beusplf77varvhip6ryuhd2fchsx26qmmhduqz432bnglq634b%402dx4k6yxj4cm

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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Heikki Linnakangas 2026-01-04 18:05:59 pgsql: Fix partial read handling in pg_upgrade's multixact conversion
Previous Message David Rowley 2026-01-04 08:15:15 pgsql: Doc: add missing punctuation