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

ALTER TABLE IMPORT enhancement

    XMLWordPrintable

Details

    Description

      The feature introduces simplified workflow:

      FLUSH TABLES t1 FOR EXPORT;
      --copy_file $MYSQLD_DATADIR/test/t1.cfg $MYSQLD_DATADIR/test/t2.cfg
      --copy_file $MYSQLD_DATADIR/test/t1.frm $MYSQLD_DATADIR/test/t2.frm
      --copy_file $MYSQLD_DATADIR/test/t1.ibd $MYSQLD_DATADIR/test/t2.ibd
      UNLOCK TABLES;
      ALTER TABLE t2 IMPORT TABLESPACE;
      

      Previously, CREATE TABLE and ALTER TABLEā€¦DISCARD TABLESPACE had to be executed, and the exact table definition from an existing .frm file could not be reused. This simplification addresses MDEV-15225.

      ha_innodb::open() should check for .ibd and .cfg files before actually opening a table.

      Attachments

        Issue Links

          Activity

            People

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