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

Online alter: support cascade foreign keys

    XMLWordPrintable

Details

    • Task
    • Status: Stalled (View Workflow)
    • Major
    • Resolution: Unresolved
    • N/A
    • None
    • None

    Description

      Currently, ALGORITHM=COPY, LOCK=NONE is disabled for tables with cascade foreign keys (including SET NULL/SET DEFAULT).

      The preliminary patch, 4b758fdc73, was done yet in scope of MDEV-29068 bugfix.

      As it was noted by Marko Mäkelä, the implementation would be unaffordably slow. Using table->vc_templ->mysql_table for a backward access to sql-layer table, as noted further, is broken by design. This should be fixed by MDEV-29181.

      Additionally, MDEV-30182 should provide an affordably fast (O(1)) FK-prelocked table lookup, which should be made per updated record.

      Attachments

        Issue Links

          Activity

            People

              gkodinov Georgi Kodinov
              nikitamalyavin Nikita Malyavin
              Votes:
              3 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0d
                  0d
                  Logged:
                  Time Spent - 1.5d
                  1.5d

                  Git Integration

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