pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: pg_buffercache: Fix incorrect result cast for relforknumber
Date: Tue, 18 Nov 2025 06:50:22 +0000
Message-ID: <E1vLFXi-0006oM-0W@gemulon.postgresql.org> (raw)

pg_buffercache: Fix incorrect result cast for relforknumber

pg_buffercache_pages.relforknumber is defined as an int2, but its value
was stored with ObjectIdGetDatum() rather than Int16GetDatum() in the
result record.

Author: Ashutosh Bapat <ashutosh.bapat.oss@gmail.com>
Discussion: https://postgr.es/m/CAExHW5s2_qwSdhKpVnUzjRMf0cf1PvmhUHQDLaFM3QzKbP1OyQ@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/694b4ab33b24dfe1f9cc00fbbd5326f0feadee4a

Modified Files
--------------
contrib/pg_buffercache/pg_buffercache_pages.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)



Message-ID: <E1vLFXi-0006oM-0W@gemulon.postgresql.org>
Permalink:  ../E1vLFXi-0006oM-0W@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1vLFXi-0006oM-0W@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: michael@paquier.xyz, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: pg_buffercache: Fix incorrect result cast for relforknumber
  In-Reply-To: <E1vLFXi-0006oM-0W@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