Re: Increase repalloc_array() usage in buffile.c

From: Daniel Gustafsson <daniel(at)yesql(dot)se>
To: Tristan Partin <tristan(at)partin(dot)io>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Increase repalloc_array() usage in buffile.c
Date: 2026-07-29 20:13:36
Message-ID: 7C7C8808-EEC8-4F87-AC91-1B3FCFE8B6E1@yesql.se
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> On 29 Jul 2026, at 21:27, Tristan Partin <tristan(at)partin(dot)io> wrote:
>
> I was reading some buffile.c code, and I noticed some hand-rolled
> versions of repalloc_array() (minus the multiplication check). Since we
> already have one usage of repalloc_array() in buffile.c for
> BufFile::files, I figured it would probably be alright if we used it in
> the other two locations as well.

+1 for the concept, but I wonder why these weren't covered by 1b105f9472bdb?

--
Daniel Gustafsson

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Daniel Gustafsson 2026-07-29 20:18:13 Re: Remove the refint contrib module (for v20)
Previous Message Andres Freund 2026-07-29 20:10:59 Re: [PATCH] Batched clock sweep to reduce cross-socket atomic contention