Coder Social home page Coder Social logo

Known limitations about gh-ost HOT 5 CLOSED

github avatar github commented on August 28, 2024
Known limitations

from gh-ost.

Comments (5)

shlomi-noach avatar shlomi-noach commented on August 28, 2024
  • Does not support FOREIGN KEYS of any kind (table must be neither "parent" nor "child")

    may support in the future

  • Active-active writable-writable master-master should not be supported (or provide a flag --allow-master-master?) Need to further think over this one

    master-master is supported, but requires the user to add --allow-master-master. gh-ost will not verify whether this is an active-active or an active-passive setup. An active-active setup may present some problems, that we haven't fully figured out yet. active-passive is good to go.

from gh-ost.

shlomi-noach avatar shlomi-noach commented on August 28, 2024
  • with go-mysql client, table names turn to lower case on reading RBR. This means potentially no support for tables with identical names but differing case. To clarify, you may not be able to alter MyTable if you also have MYtable table.

from gh-ost.

shlomi-noach avatar shlomi-noach commented on August 28, 2024
  • When altering a table, some sort of UNIQUE KEY must be shared between the two tables.

    in the case where you have a table with a unique key but no primary key, and you wish to convert the uk to pk, two migrations are required: one to add pk, utilizing the existing uk, another to drop the uk. Maybe in the future gh-ost will support this as a single operation.

  • Shared UNIQUE KEY must not include columns with NULL values. That is: it is OK for columns to be NULLABLE, but not OK if they actually contain NULL values.

    • For PRIMARY KEYs this is a non issue since by definition they may only include non-nullable columns

from gh-ost.

shlomi-noach avatar shlomi-noach commented on August 28, 2024
  • Currently no support for renaming a column

    There is now.

from gh-ost.

shlomi-noach avatar shlomi-noach commented on August 28, 2024

This issue turns into a documentation page: requirements and limitations. Closing

from gh-ost.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.