Re: Use pg_malloc macros in src/fe_utils
Michael Paquier <michael@paquier.xyz>
From: Michael Paquier <michael@paquier.xyz>
To: Andreas Karlsson <andreas@proxel.se>
Cc: Henrik TJ <henrik@0x48.dk>, PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Date: 2026-02-24T03:36:50Z
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
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Use pg_malloc_object() and pg_alloc_array() variants in frontend code
- 574bee89c237 19 (unreleased) landed
-
fe_utils: Sprinkle some pg_malloc_object() and pg_malloc_array()
- ff393fa52664 19 (unreleased) landed