From: Alexander Korotkov <akorotkov@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix usage of palloc() in MERGE/SPLIT PARTITION(s) code
Date: Sun, 14 Dec 2025 14:10:53 +0000
Message-ID: <E1vUmoG-000j4S-0M@gemulon.postgresql.org> (raw)
Fix usage of palloc() in MERGE/SPLIT PARTITION(s) code
f2e4cc427951 and 4b3d173629f4 implement ALTER TABLE ... MERGE/SPLIT
PARTITION(s) commands. In several places, these commits use palloc(),
where we should use palloc_object() and palloc_array(). This commit
provides appropriate usage of palloc_object() and palloc_array().
Reported-by: Man Zeng <zengman@halodbtech.com>
Discussion: https://postgr.es/m/tencent_3661BB522D5466B33EA33666%40qq.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/c5ae07a90a0f3594e5053a26f3c99b041df427d3
Modified Files
--------------
src/backend/commands/tablecmds.c | 6 +++---
src/backend/partitioning/partbounds.c | 12 ++++--------
2 files changed, 7 insertions(+), 11 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: akorotkov@postgresql.org, pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Fix usage of palloc() in MERGE/SPLIT PARTITION(s) code
In-Reply-To: <E1vUmoG-000j4S-0M@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