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

ROW_FORMAT=COMPRESSED unnecessarily requires NOCOPY for INSTANT operation

Details

    Description

      create table t1(c varchar(9)) engine=innodb row_format=compressed;
      insert into t1 values (repeat('a', 9));
      alter table t1 modify c varchar(10), algorithm=nocopy;
      

      In this ALTER TABLE only data dictionary and cache are updated. So, in fact it's an INSTANT operation.

      Attachments

        Issue Links

          Activity

            kevg Eugene Kosov (Inactive) created issue -
            kevg Eugene Kosov (Inactive) made changes -
            Field Original Value New Value
            kevg Eugene Kosov (Inactive) made changes -
            Description {noformat}
            create table t1(c varchar(9)) engine=innodb row_format=compressed;
            insert into t1 values (repeat('a', 9));
            alter table t1 modify c varchar(10), algorithm=nocopy;
            {noformat}
            {noformat}
            create table t1(c varchar(9)) engine=innodb row_format=compressed;
            insert into t1 values (repeat('a', 9));
            alter table t1 modify c varchar(10), algorithm=nocopy;
            {noformat}

            In this {{ALTER TABLE}} only data dictionary and cache are updated. So, in fact it's an {{INSTANT}} operation.
            marko Marko Mäkelä made changes -
            Issue Type Task [ 3 ] Bug [ 1 ]
            marko Marko Mäkelä made changes -
            Affects Version/s 10.3 [ 22126 ]
            Affects Version/s 10.4 [ 22408 ]
            kevg Eugene Kosov (Inactive) made changes -
            Fix Version/s 10.3.14 [ 23216 ]
            Fix Version/s 10.3 [ 22126 ]
            Fix Version/s 10.4 [ 22408 ]
            Resolution Fixed [ 1 ]
            Status Open [ 1 ] Closed [ 6 ]
            marko Marko Mäkelä made changes -
            Summary ROW_FORMAT=COMPRESSED unnecessary requires NOCOPY for INSTANT operation ROW_FORMAT=COMPRESSED unnecessarily requires NOCOPY for INSTANT operation
            kevg Eugene Kosov (Inactive) made changes -
            Resolution Fixed [ 1 ]
            Status Closed [ 6 ] Stalled [ 10000 ]
            kevg Eugene Kosov (Inactive) made changes -
            Affects Version/s 10.3 [ 22126 ]
            kevg Eugene Kosov (Inactive) made changes -
            Fix Version/s 10.4 [ 22408 ]
            Fix Version/s 10.3.14 [ 23216 ]
            kevg Eugene Kosov (Inactive) made changes -
            Status Stalled [ 10000 ] In Progress [ 3 ]
            kevg Eugene Kosov (Inactive) made changes -
            Assignee Eugene Kosov [ kevg ] Marko Mäkelä [ marko ]
            Status In Progress [ 3 ] In Review [ 10002 ]
            marko Marko Mäkelä made changes -
            issue.field.resolutiondate 2019-02-07 10:23:57.0 2019-02-07 10:23:57.082
            marko Marko Mäkelä made changes -
            Fix Version/s 10.4.3 [ 23230 ]
            Fix Version/s 10.4 [ 22408 ]
            Assignee Marko Mäkelä [ marko ] Eugene Kosov [ kevg ]
            Resolution Fixed [ 1 ]
            Status In Review [ 10002 ] Closed [ 6 ]
            serg Sergei Golubchik made changes -
            Workflow MariaDB v3 [ 92213 ] MariaDB v4 [ 155624 ]

            People

              kevg Eugene Kosov (Inactive)
              kevg Eugene Kosov (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 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.