-
Notifications
You must be signed in to change notification settings - Fork 5.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support multiple table rename (swap table use case) #9384
Comments
@morgo Got it, we are planning to have a design document of the multiple DDL changes. Multi table rename can be developed first. |
Refer to: https://dev.mysql.com/doc/refman/5.7/en/rename-table.html |
/pick-up |
Pick up success. |
@TszKitLo40 You did not submit PR within 7 days, so give up automatically. |
/pick-up |
Pick up success. |
@TszKitLo40 You did not submit PR within 7 days, so give up automatically. |
/pick-up |
Pick up success. |
@TszKitLo40 You did not submit PR within 7 days, so give up automatically. |
/pick-up |
Pick up success. |
This issue already picked by TszKitLo40. |
@TszKitLo40 You did not submit PR within 7 days, so give up automatically. |
/pick-up |
Pick up success. |
@TszKitLo40 You did not submit PR within 7 days, so give up automatically. |
/pick-up |
Pick up success. |
@TszKitLo40 You did not submit PR within 7 days, so give up automatically. |
/pick-up |
This issue is already closed! |
Feature Request
Is your feature request related to a problem? Please describe:
I know that multiple DDL changes are currently on the roadmap. My feature request is to support a much smaller subset, which is an atomic rename of two tables.
This supports the use case of swapping tables, something that occurs frequently in the replication stream due to its usage by tools such as
pt-online-schema-change
.Describe the feature you'd like:
Describe alternatives you've considered:
The alternative is to do this non-atomically (breaks apps) or under a global lock (not yet supported by TiDB). So there is not really a good alternative.
Teachability, Documentation, Adoption, Migration Strategy:
MySQL compatible behavior.
Score
1500
SIG Slack Channel
You can join #sig-ddl on slack in your spare time to discuss and get help with mentors or others.
Mentor(s)
Recommended Skills
Learning Materials
MySQL's document for syntax reference.
TiDB DDL architecture
The text was updated successfully, but these errors were encountered: