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

Avoid table rebuild when removing of auto_increment settings

    XMLWordPrintable

Details

    • 10.2.12, 5.5.59

    Description

      Basically, it's a request to implement upstream feature request:

      https://bugs.mysql.com/bug.php?id=72109

      Copying the table to just drop auto_increment attribute:

      MariaDB [test]> create table t(id int auto_increment not null, key(id)) engine=InnoDB;
      Query OK, 0 rows affected (0.22 sec)
       
      MariaDB [test]> alter table t modify column id int not null, algorithm=inplace; 
      ERROR 1846 (0A000): ALGORITHM=INPLACE is not supported. Reason: Cannot change column type INPLACE. Try ALGORITHM=COPY
      

      is awful in production. Workarounds exist, but why not to do this in-place and without copying all the data?

      Attachments

        Issue Links

          Activity

            People

              serg Sergei Golubchik
              valerii Valerii Kravchuk
              Votes:
              1 Vote for this issue
              Watchers:
              7 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.