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

Auto-drop old history partition for system-versioned tables that use auto-creation

    XMLWordPrintable

Details

    Description

      Enable history partitions rotation with AUTO argument to specify maximum number of partitions kept in the table:

      create table t1 (x int) with system versioning
      partition by system_time interval 1 hour auto 25;
       
      create table t1 (x int) with system versioning
      partition by system_time interval 1 month auto 13;
      

      Or with explicit partitions:

      create table t1 (x int) with system versioning
      partition by system_time interval 1 hour auto 25
      (partition p0 history, partition pn current);
      

      Attachments

        Issue Links

          Activity

            People

              serg Sergei Golubchik
              midenok Aleksey Midenkov
              Votes:
              3 Vote for this issue
              Watchers:
              7 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.