Re: Use pg_malloc macros in src/fe_utils

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: Andreas Karlsson <andreas(at)proxel(dot)se>
Cc: 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-24 03:36:50
Message-ID: aZ0c0oaYi-kG4hfA@paquier.xyz
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, Feb 23, 2026 at 03:17:52AM +0100, Andreas Karlsson wrote:
> 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.

FWIW, I don't really mind if these changes are proposed gradually, and
this looked fine enough on its own. So applied.
--
Michael

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Amul Sul 2026-02-24 03:39:18 Re: [PATCH] Add pg_get_database_ddl() function to reconstruct CREATE DATABASE statement
Previous Message Bryan Green 2026-02-24 03:36:31 Re: [PATCH] Add Windows support for backtrace_functions (MSVC only)