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

Changing delay_key_write option for MyISAM table should not copy rows

Details

    Description

      Currently, changing delay_key_write option for MyISAM table using ALTER TABLE statement copies all table rows to a temporary table during alteration. However, it is totally unnecessary. Changing this attribute should not copy rows.

      One can just create a table with the same structure and this option set and then copy/rename .frm file, but why to rely on workaround when this can be implemented by server itself?

      See https://bugs.mysql.com/bug.php?id=45492 upstream MySQL bug also.

      Attachments

        Issue Links

          Activity

            valerii Valerii Kravchuk created issue -
            valerii Valerii Kravchuk made changes -
            Field Original Value New Value
            Labels MyISAM upstream
            serg Sergei Golubchik made changes -
            Fix Version/s 10.1 [ 16100 ]
            serg Sergei Golubchik made changes -
            Affects Version/s 5.5 [ 15800 ]
            Affects Version/s 10.0 [ 16000 ]
            Affects Version/s 10.1 [ 16100 ]
            serg Sergei Golubchik made changes -
            Assignee Sergei Golubchik [ serg ]

            This is a bit tricky. delay_key_write option is stored in the MYI file and MyISAM does not support rewriting MYI header only, it has to recreate the whole MYI file.

            serg Sergei Golubchik added a comment - This is a bit tricky. delay_key_write option is stored in the MYI file and MyISAM does not support rewriting MYI header only, it has to recreate the whole MYI file.
            serg Sergei Golubchik made changes -
            serg Sergei Golubchik made changes -
            serg Sergei Golubchik made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            serg Sergei Golubchik made changes -
            Status In Progress [ 3 ] Stalled [ 10000 ]
            serg Sergei Golubchik made changes -
            Fix Version/s 10.1.24 [ 22541 ]
            Fix Version/s 10.2.7 [ 22543 ]
            Fix Version/s 10.1 [ 16100 ]
            Resolution Fixed [ 1 ]
            Status Stalled [ 10000 ] Closed [ 6 ]
            serg Sergei Golubchik made changes -
            serg Sergei Golubchik made changes -
            Workflow MariaDB v3 [ 78425 ] MariaDB v4 [ 151252 ]
            mariadb-jira-automation Jira Automation (IT) made changes -
            Zendesk Related Tickets 182220

            People

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