[MDEV-14739] Unable to drop one partition of a HASH partitioned table Created: 2017-12-21  Updated: 2017-12-21

Status: Open
Project: MariaDB Server
Component/s: Data Definition - Alter Table
Fix Version/s: None

Type: Task Priority: Major
Reporter: Michaël de groot Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None


 Description   

Hi,

In InnoDB, dropping a table is blocking and expensive. In my experience, this is about 1 second of downtime per 100GB buffer pool. Dropping a partitioned table does this sequentially and is blocking in the entire operation.

A work-around for this is possible by dropping each partition. However, in hash and key partitioned tables the partitions do not (seam to, from SHOW CREATE TABLE) have a name. When using EXPLAIN PARTITIONS I do see that the partitions have names. Dropping the partition does not help me any further, though:
MariaDB 16:48 world> alter table employees drop partition p0;
ERROR 1512 (HY000): DROP PARTITION can only be used on RANGE/LIST partitions

For this partition it should be possible for this purpose.

Thanks,
Michaël


Generated at Thu Feb 08 08:15:54 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.