Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-14739

Unable to drop one partition of a HASH partitioned table

    XMLWordPrintable

Details

    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

      Attachments

        Activity

          People

            Unassigned Unassigned
            michaeldg Michaël de groot
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.