Re: Use pg_malloc macros in src/fe_utils

From: Andreas Karlsson <andreas(at)proxel(dot)se>
To: Henrik TJ <henrik(at)0x48(dot)dk>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Use pg_malloc macros in src/fe_utils
Date: 2026-02-23 02:17:52
Message-ID: 93102cd4-5e35-4392-8700-e6e2fee847fd@proxel.se
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 2/18/26 4:05 PM, Henrik TJ wrote:
> Inspired by [1], I took a stab at converting src/fe_utils to the new
> pg_malloc macros.
Thanks for the patch!

Looks like a nice change but why not just fix all instances of it in one
swoop? It cannot be that many as there are 166 calls to pg_malloc() and
62 calls to pg_malloc0() after your patch that need to be looked at.

--
Andreas Karlsson
Percona

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andreas Karlsson 2026-02-23 02:28:57 Re: refactor ExecInitPartitionInfo
Previous Message Sami Imseih 2026-02-23 02:12:06 Re: Flush some statistics within running transactions