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

CONVERT PARTITION: move out partition into a table

    XMLWordPrintable

Details

    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

          Activity

            People

              midenok Aleksey Midenkov
              monty Michael Widenius
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

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