Use pg_malloc macros in src/fe_utils

From: Henrik TJ <henrik(at)0x48(dot)dk>
To: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Use pg_malloc macros in src/fe_utils
Date: 2026-02-18 15:05:09
Message-ID: 6df1b64e-1314-9afd-41a3-3fefb76225e1@0x48.dk
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi

Inspired by [1], I took a stab at converting src/fe_utils to the new
pg_malloc macros.

Some mostly useless metrics: 31/34 converted, 7 casts removed.

meson test looks good for me.

1. https://www.postgresql.org/message-id/flat/CAHut%2BPvpGPDLhkHAoxw_g3jdrYxA1m16a8uagbgH3TGWSKtXNQ%40mail.gmail.com

best regards, Henrik

Attachment Content-Type Size
v1-0001-fe_utils-Use-pg_malloc_object-and-pg_malloc_array.patch text/plain 8.5 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Magnus Hagander 2026-02-18 15:07:53 Killing off anoncvs.postgresql.org
Previous Message Aleksander Alekseev 2026-02-18 14:57:55 Re: Add uuid_to_base32hex() and base32hex_to_uuid() built-in functions