From: | Dmitry Koval <d(dot)koval(at)postgrespro(dot)ru> |
---|---|
To: | jian he <jian(dot)universality(at)gmail(dot)com> |
Cc: | pgsql-hackers(at)lists(dot)postgresql(dot)org |
Subject: | Re: Add SPLIT PARTITION/MERGE PARTITIONS commands |
Date: | 2025-09-01 11:03:58 |
Message-ID: | f1c96833-6d37-46ac-ae9b-6d48ec55dd4c@postgrespro.ru |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Hi!
Thank you for the notes and patch!
1.
>ORDER BY regclass seems not stable, see
>https://git.postgresql.org/cgit/postgresql.git/commit/
>?id=17bcf4f5450430f67b744c225566c9e0e6413e95
>some of the SQL tests seem not necessary, so I refactored tests.
Thanks.
Also changed tests for SPLIT PARTITION.
2.
>the last part seems intuitive?
>"colList = lappend(colList, def);" should be at the end of the for loop?
I agree, it's better.
3.
>"-- Not-null constraint name should be 'tp_1_2_i_not_null'.
>Comments conflict with the result.
Thanks, this was correct for older versions.
4.
>* We reject whole-row variables because the whole point of LIKE is
>* that the new table's rowtype might later diverge from the parent's.
...
>the above comment needs change, since LIKE is not related to here.
Corrected.
5.
>here, we don't need expand_generated_columns_in_expr, the comment also
>explained it.
>the attached patch is the changes for the above comments.
Applied.
--
With best regards,
Dmitry Koval
Postgres Professional: http://postgrespro.com
Attachment | Content-Type | Size |
---|---|---|
v54-0001-Implement-ALTER-TABLE-.-MERGE-PARTITIONS-.-comma.patch | text/plain | 166.9 KB |
v54-0002-Implement-ALTER-TABLE-.-SPLIT-PARTITION-.-comman.patch | text/plain | 228.0 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Dean Rasheed | 2025-09-01 11:21:18 | Re: Refactoring: Use soft error reporting for *_opt_error functions |
Previous Message | Yugo Nagata | 2025-09-01 11:01:48 | Re: PG 18 release notes draft committed |