Bug #68223 | Manual for ALTER TABLE is wrong about mixing partitioning and other changes | ||
---|---|---|---|
Submitted: | 30 Jan 2013 9:34 | Modified: | 6 Feb 2013 10:01 |
Reporter: | Valeriy Kravchuk | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Documentation | Severity: | S2 (Serious) |
Version: | 5.1+ | OS: | Any |
Assigned to: | Jon Stephens | CPU Architecture: | Any |
Tags: | alter, partitioning |
[30 Jan 2013 9:34]
Valeriy Kravchuk
[30 Jan 2013 12:00]
MySQL Verification Team
Thank you for the bug report. Verified as described.
[30 Jan 2013 12:26]
Mattias Jonsson
You can combine 'PARTITION BY ...' and 'REMOVE PARTITION' with other alter_specifications (but the partitioning must be last). But you cannot combine alter_specifications with ADD/DROP/COALESCE/REORGANIZE/ANALYZE/CHECK/REPAIR/... PARTITION, since those commands can operate on a single partition. To avoid too many rebuilds during ALTER TABLE, one can add a new PARTITION BY clause to define how it should be partitioned (and then already have added/reorganized partitions).
[6 Feb 2013 10:01]
Jon Stephens
Thank you for your bug report. This issue has been addressed in the documentation. The updated documentation will appear on our website shortly, and will be included in the next release of the relevant products.
[6 Feb 2013 10:02]
Jon Stephens
Fixed in mysqldoc rev 34199. Closed.