Fix usage of palloc() in MERGE/SPLIT PARTITION(s) code master github/master
authorAlexander Korotkov <[email protected]>
Sun, 14 Dec 2025 14:10:25 +0000 (16:10 +0200)
committerAlexander Korotkov <[email protected]>
Sun, 14 Dec 2025 14:10:25 +0000 (16:10 +0200)
commitc5ae07a90a0f3594e5053a26f3c99b041df427d3
tree560aa4909d7bc43cc1a90dc1f66923c2870555df
parent4b3d173629f4cd7ab6cd700d1053af5d5c7c9e37
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 <[email protected]>
Discussion: https://postgr.es/m/tencent_3661BB522D5466B33EA33666%40qq.com
src/backend/commands/tablecmds.c
src/backend/partitioning/partbounds.c