| From: | Alexander Korotkov <akorotkov(at)postgresql(dot)org> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Fix usage of palloc() in MERGE/SPLIT PARTITION(s) code |
| Date: | 2025-12-14 14:10:53 |
| Message-ID: | E1vUmoG-000j4S-0M@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
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(at)halodbtech(dot)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(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Alexander Korotkov | 2025-12-14 15:20:10 | pgsql: Refactor WaitLSNType enum to use a macro for type count |
| Previous Message | Alexander Korotkov | 2025-12-14 11:30:02 | pgsql: Implement ALTER TABLE ... MERGE PARTITIONS ... command |