From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Use palloc_object() and palloc_array(), the last change
Date: Thu, 11 Dec 2025 05:30:19 +0000
Message-ID: <E1vTZFq-0006CU-2y@gemulon.postgresql.org> (raw)
Use palloc_object() and palloc_array(), the last change
This is the last batch of changes that have been suggested by the
author, this part covering the non-trivial changes. Some of the changes
suggested have been discarded as they seem to lead to more instructions
generated, leaving the parts that can be qualified as in-place
replacements.
Similar work has been done in 1b105f9472bd, 0c3c5c3b06a3 and
31d3847a37be.
Author: David Geier <geidav.pg@gmail.com>
Discussion: https://postgr.es/m/ad0748d4-3080-436e-b0bc-ac8f86a3466a@gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/4f7dacc5b82af19788599671abe4ac633fd7ea4c
Modified Files
--------------
contrib/pg_buffercache/pg_buffercache_pages.c | 8 ++++----
contrib/pg_trgm/trgm_op.c | 14 +++++++-------
contrib/postgres_fdw/postgres_fdw.c | 20 +++++++++----------
src/backend/executor/execPartition.c | 28 +++++++++++----------------
src/backend/partitioning/partprune.c | 23 +++++++++++-----------
src/backend/statistics/mvdistinct.c | 14 +++++++-------
src/backend/storage/buffer/bufmgr.c | 6 +++---
7 files changed, 53 insertions(+), 60 deletions(-)
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: pgsql-committers@postgresql.org
Cc: michael@paquier.xyz, pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Use palloc_object() and palloc_array(), the last change
In-Reply-To: <E1vTZFq-0006CU-2y@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox