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

Support ALGORITHM=NOCOPY for CHANGE virtual column expression

Details

    Description

      Currently, the ALTER TABLE operation ALTER_STORED_GCOL_EXPR (changing the expression of a generated stored column, or materialized virtual column) is only supported by ALGORITHM=COPY, which does a full rebuild of the table.

      We could support the operation with ALGORITHM=NOCOPY by validating all data and executing UPDATE of the data. Concurrent non-locking MVCC reads would be possible, but concurrent writes to the table could lead to locking conflicts.

      Attachments

        Issue Links

          Activity

            marko Marko Mäkelä created issue -
            marko Marko Mäkelä made changes -
            Field Original Value New Value
            GeoffMontee Geoff Montee (Inactive) made changes -
            GeoffMontee Geoff Montee (Inactive) made changes -
            serg Sergei Golubchik made changes -
            Workflow MariaDB v3 [ 89030 ] MariaDB v4 [ 130889 ]

            People

              marko Marko Mäkelä
              marko Marko Mäkelä
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.