public inbox for [email protected]
help / color / mirror / Atom feedFrom: Michael Paquier <[email protected]>
To: [email protected]
Subject: pgsql: fe_utils: Sprinkle some pg_malloc_object() and pg_malloc_array()
Date: Tue, 24 Feb 2026 03:36:27 +0000
Message-ID: <[email protected]> (raw)
fe_utils: Sprinkle some pg_malloc_object() and pg_malloc_array()
The idea is to encourage more the use of these allocation routines
across the tree, as these offer stronger type safety guarantees than
pg_malloc() & friends (type cast in the result, sizeof() embedded).
This commit updates some code paths of src/fe_utils/.
This commit is similar to 31d3847a37be.
Author: Henrik TJ <[email protected]>
Reviewed-by: Andreas Karlsson <[email protected]>
Discussion: https://postgr.es/m/[email protected]
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/ff393fa526648c091a3492da3bd6dd140e3c55e7
Modified Files
--------------
src/fe_utils/conditional.c | 4 ++--
src/fe_utils/print.c | 48 +++++++++++++++++++++++-----------------------
src/fe_utils/psqlscan.l | 8 ++++----
src/fe_utils/simple_list.c | 4 ++--
4 files changed, 32 insertions(+), 32 deletions(-)
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected]
Subject: Re: pgsql: fe_utils: Sprinkle some pg_malloc_object() and pg_malloc_array()
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox