| From: | Alexander Korotkov <aekorotkov(at)gmail(dot)com> |
|---|---|
| To: | Dmitry Koval <d(dot)koval(at)postgrespro(dot)ru> |
| Cc: | pgsql-hackers(at)lists(dot)postgresql(dot)org |
| Subject: | Re: Add SPLIT PARTITION/MERGE PARTITIONS commands |
| Date: | 2025-12-09 23:54:00 |
| Message-ID: | CAPpHfdtBH5YhAiKhXPcLAE4CCRMaGKqupzx8u2RKEm2aQ_e3Xw@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On Wed, Dec 10, 2025 at 1:22 AM Dmitry Koval <d(dot)koval(at)postgrespro(dot)ru> wrote:
> Thank you for your corrections!
> Two questions:
> ----
>
> 1) "v65-0001-Implement-ALTER-TABLE-.-MERGE-PARTITIONS-.-comma.patch"
> patch, "src/backend/partitioning/partbounds.c" file,
> "check_two_partitions_bounds_range" function.
>
> Old comment (v64)
>
> + /*
> + * lower1=false (the second to last argument) for correct comparison of
> + * lower and upper bounds.
> + */
>
> was changed to (v65)
>
> + /*
> + * cmpval == false for the correct comparison result of the lower and
> + * upper bounds.
> + */
>
> Maybe it's better to keep the old comment (or keep its meaning)?
> ----
>
> 2) "v65-0002-Implement-ALTER-TABLE-.-SPLIT-PARTITION-.-comman.patch"
> patch, "src/backend/parser/parse_utilcmd.c" file, "checkPartition" function.
>
> The third argument of function was changed from "is_merge" (v64) to
> "isMerge" (v65). Maybe the function description should be changed in
> the same way?
>
> + * is_merge: true indicates the operation is "ALTER TABLE ... MERGE
> PARTITIONS";
Thank you for catching this. Both accepted.
------
Regards,
Alexander Korotkov
Supabase
| Attachment | Content-Type | Size |
|---|---|---|
| v66-0001-Implement-ALTER-TABLE-.-MERGE-PARTITIONS-.-comma.patch | application/octet-stream | 171.8 KB |
| v66-0002-Implement-ALTER-TABLE-.-SPLIT-PARTITION-.-comman.patch | application/octet-stream | 234.2 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Bryan Green | 2025-12-10 00:45:52 | [PATCH] Fix severe performance regression with gettext 0.20+ on Windows |
| Previous Message | Tom Lane | 2025-12-09 23:36:19 | Re: Solaris versus our NLS files |