agora inbox for pgsql-committers@postgresql.org  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Use [re]palloc_array() in buffile.c and fd.c
Date: Fri, 31 Jul 2026 02:49:49 +0000
Message-ID: <E1wpdJl-000000011x2-0mGX@gemulon.postgresql.org> (raw)

Use [re]palloc_array() in buffile.c and fd.c

The code paths patched in this commit fix some of remnants not addressed
by 1b105f9472bd.  We should have more holes in the tree that could
benefit from stronger type safety guarantees.  These hypothetical holes
could be addressed later; this finishes the job in storage/file/ for the
backend code.

Author: Tristan Partin <tristan@partin.io>
Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
Reviewed-by: Sami Imseih <samimseih@gmail.com>
Discussion: https://postgr.es/m/DKBAWPZ2QDOS.10Y3JDUNKFMXX@partin.io

Branch
------
master

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

Modified Files
--------------
src/backend/storage/file/buffile.c | 6 ++----
src/backend/storage/file/fd.c      | 4 ++--
2 files changed, 4 insertions(+), 6 deletions(-)



Message-ID: <E1wpdJl-000000011x2-0mGX@gemulon.postgresql.org>
Permalink:  ../E1wpdJl-000000011x2-0mGX@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1wpdJl-000000011x2-0mGX@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: Use [re]palloc_array() in buffile.c and fd.c
  In-Reply-To: <E1wpdJl-000000011x2-0mGX@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 agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox