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

CONVERT PARTITION: move out partition into a table

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

            Transition Time In Source Status Execution Times
            Aleksey Midenkov made transition -
            Open In Progress
            477d 20h 55m 1
            Aleksey Midenkov made transition -
            In Progress In Review
            20d 6h 59m 1
            Aleksey Midenkov made transition -
            Stalled In Review
            8d 20h 9m 2
            Sergei Golubchik made transition -
            In Review Stalled
            15d 5h 17m 3
            Sergei Golubchik made transition -
            Stalled Closed
            45d 20h 22m 1

            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.