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

Add Foreign key to a table instantly without checking existing data

    XMLWordPrintable

Details

    • Task
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None

    Description

      We have received a request to add foreign keys to a table instantly but validating the existing data at a later stage.
      According to the customer, this feature is supported by PostgreSQL (NOT VALID keyword).
      https://dba.stackexchange.com/a/271585

      Currently adding a foreign key locks the table and it is not supported by ALTER TABLE ... ALGORITHM=INSTANT.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              susmeet.khaire Susmeet Khaire
              Votes:
              1 Vote for this issue
              Watchers:
              8 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.