Commit c5ae07a
committed
Fix usage of palloc() in MERGE/SPLIT PARTITION(s) code
f2e4cc4 and 4b3d173 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.com1 parent 4b3d173 commit c5ae07a
2 files changed
+7
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22317 | 22317 | | |
22318 | 22318 | | |
22319 | 22319 | | |
22320 | | - | |
| 22320 | + | |
22321 | 22321 | | |
22322 | 22322 | | |
22323 | 22323 | | |
| |||
22406 | 22406 | | |
22407 | 22407 | | |
22408 | 22408 | | |
22409 | | - | |
| 22409 | + | |
22410 | 22410 | | |
22411 | 22411 | | |
22412 | 22412 | | |
| |||
22944 | 22944 | | |
22945 | 22945 | | |
22946 | 22946 | | |
22947 | | - | |
| 22947 | + | |
22948 | 22948 | | |
22949 | 22949 | | |
22950 | 22950 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5115 | 5115 | | |
5116 | 5116 | | |
5117 | 5117 | | |
5118 | | - | |
5119 | | - | |
| 5118 | + | |
5120 | 5119 | | |
5121 | 5120 | | |
5122 | 5121 | | |
| |||
5755 | 5754 | | |
5756 | 5755 | | |
5757 | 5756 | | |
5758 | | - | |
5759 | | - | |
| 5757 | + | |
5760 | 5758 | | |
5761 | 5759 | | |
5762 | 5760 | | |
| |||
5786 | 5784 | | |
5787 | 5785 | | |
5788 | 5786 | | |
5789 | | - | |
5790 | | - | |
| 5787 | + | |
5791 | 5788 | | |
5792 | 5789 | | |
5793 | 5790 | | |
| |||
5802 | 5799 | | |
5803 | 5800 | | |
5804 | 5801 | | |
5805 | | - | |
5806 | | - | |
| 5802 | + | |
5807 | 5803 | | |
5808 | 5804 | | |
5809 | 5805 | | |
| |||
0 commit comments