Details
-
Task
-
Status: Closed (View Workflow)
-
Critical
-
Resolution: Fixed
Description
Moving a table out from a partitioned table is new quite cumbersome:
('archive' is here a partitioned table and 'p1' is a normal table)
CREATE TABLE tp1 LIKE archive;
ALTER TABLE tp1 REMOVE PARTITIONING;
ALTER TABLE archive EXCHANGE PARTITION p1 WITH TABLE tp1;
ALTER TABLE archive DROP PARTITION p1;
Instead one should be able to do:
ALTER TABLE archive CONVERT PARTITION p1 TO TABLE tp1;
The operation crash safety must be protected by DDL logging.
Attachments
Issue Links
- causes
-
MDEV-26767 Server crashes when rename table and alter storage engine
- Closed
- 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-22165 CONVERT TABLE: move in partition from existing table
- Closed
-
MDEV-31013 CONVERT PARTITION is not documented in the KB
- Closed
-
MDEV-22164 WITHOUT VALIDATION for EXCHANGE PARTITION/CONVERT IN
- Closed
-
MDEV-27180 Fully atomic partitioning DDL operations
- In Review
-
MDEV-31014 Database privileges are insufficient for CONVERT TABLE TO PARTITION
- Closed