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

Reorganize multiple history partitions

    XMLWordPrintable

Details

    Description

      Implement merging of multiple history partitions by the syntax:

      create or replace table t1 (x int) with system versioning
      partition by system_time partitions 3;
      alter table t1 reorganize partition p0, p1 into (partition p0 history);
      

      Consider implementing splitting into multiple history partitions:

      create or replace table t1 (x int) with system versioning
      partition by system_time;
      alter table t1 reorganize partition p0 into (partition p0 history, partition p1 history);
      

      Splitting distributes rows equally between specified partitions.

      For INTERVAL:
      Merging and splitting is forbidden.

      For LIMIT:
      Merging is forbidden when LIMIT is overflown.

      Currently splitting and merging fail with error:

      ERROR 1510 (HY000): REORGANIZE PARTITION can only be used to reorganize partitions not to change their numbers
      

      More observations

      Attachments

        Issue Links

          Activity

            People

              midenok Aleksey Midenkov
              midenok Aleksey Midenkov
              Votes:
              0 Vote for this issue
              Watchers:
              2 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.