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

Enhance Support For Partition Truncate

    XMLWordPrintable

Details

    • Task
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None

    Description

      Extend current partition truncation to better support rolling dates in tables.

      CREATE TABLE members (
          firstname VARCHAR(25) NOT NULL,
          lastname VARCHAR(25) NOT NULL,
          username VARCHAR(16) NOT NULL,
          joined DATETIME NOT NULL
      )
      PARTITION BY HASH(TO_DAYS(joined))
      PARTITIONS 7;

      ALTER TABLE t1 TRUNCATE PARTITION WHERE joined='2014-01-01'

      The effect would be that the partition that would be mapped from the value '2014-01-01' would be truncated.

      Attachments

        Activity

          People

            Unassigned Unassigned
            belugabehr BELUGABEHR
            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.