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

Table from older version requires table rebuild when adding column to table with multi-column index

Details

    Description

      How to reproduce:

      On a 10.4 server instance do:

      CREATE TABLE t1 (
        id int not null primary key,
        msg varchar(10),
        index(id, msg)
      ) ENGINE=InnoDB ROW_FORMAT=DYNAMIC;
      

      Then upgrade to 10.5 and try to instant-add a column:

      alter table t1 add column i int, algorithm=instant;
      

      This fails with:

      ERROR 1845 (0A000): ALGORITHM=INSTANT is not supported for this operation. Try ALGORITHM=INPLACE
      

      Same table created on 10.5 right away allows to add the column in instant mode just fine.

      Attachments

        Issue Links

          Activity

            Transition Time In Source Status Execution Times
            Julien Fritsch made transition -
            Open Confirmed
            6d 13h 55m 1
            Alexander Barkov made transition -
            Confirmed In Progress
            101d 23h 32m 1
            Alexander Barkov made transition -
            In Progress Stalled
            25d 23h 56m 1
            Alexander Barkov made transition -
            Stalled Closed
            25s 1

            People

              bar Alexander Barkov
              hholzgra Hartmut Holzgraefe
              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.