Details
-
Task
-
Status: Closed (View Workflow)
-
Critical
-
Resolution: Fixed
-
None
Description
Adding a new table to a partitioned table is now quite cumbersome:
('archive' is here a partitioned table and p1 is a normal table)
ALTER TABLE archive ADD PARTITION (PARTITION p1 VALUES LESS THAN (200));
ALTER TABLE archive EXCHANGE PARTITION p1 WITH TABLE p1;
DROP TABLE p1;
It would be nice to be able to do this in one step:
ALTER TABLE archive CONVERT TABLE tp1 TO PARTITION p1 VALUES LESS THAN (200);
The operation crash safety must be protected by DDL logging.
Attachments
Issue Links
- causes
-
MDEV-29841 Partition by system_time can be converted into table but not back
- Closed
-
MDEV-31014 Database privileges are insufficient for CONVERT TABLE TO PARTITION
- Closed
-
MDEV-33131 Server crash or assertion failure upon CONVERT <temporary table> TO PARTITION
- Open
-
MDEV-33146 CONVERT TABLE TO PARTITION does not work for default list partition
- Open
-
MDEV-33154 Confusing error ER_PARTITION_INSTEAD_OF_SUBPARTITION upon trying to convert table to partition
- Open
-
MDEV-33170 ASAN errors upon CONVERT TABLE TO PARTITION with query cache
- Open
- is blocked by
-
MDEV-17567 Atomic DDL
- Closed
- is part of
-
MDEV-22162 Make partitions more flexible to use
- Open
- relates to
-
MDEV-17567 Atomic DDL
- Closed
-
MDEV-22164 WITHOUT VALIDATION for EXCHANGE PARTITION/CONVERT IN
- Closed
-
MDEV-22166 CONVERT PARTITION: move out partition into a table
- Closed
-
MDEV-27180 Fully atomic partitioning DDL operations
- In Review
-
MDEV-31014 Database privileges are insufficient for CONVERT TABLE TO PARTITION
- Closed