Increase repalloc_array() usage in buffile.c

From: "Tristan Partin" <tristan(at)partin(dot)io>
To: "pgsql-hackers" <pgsql-hackers(at)postgresql(dot)org>
Subject: Increase repalloc_array() usage in buffile.c
Date: 2026-07-29 19:27:33
Message-ID: DKBAWPZ2QDOS.10Y3JDUNKFMXX@partin.io
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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.

--
Tristan Partin
PostgreSQL Contributors Team
AWS (https://aws.amazon.com)

Attachment Content-Type Size
repalloc_array.diff text/x-patch 1007 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Matthias van de Meent 2026-07-29 19:45:44 Bug: Whole-row var in indexes corrupts indexes after DDL
Previous Message Hannu Krosing 2026-07-29 19:13:47 Direct Toast PoC