WL#4444: TRUNCATE PARTITION supportAffects: Server-5.5 — Status: In-Documentation — Priority: MediumImplement support for TRUNCATE PARTITION. See also: BUG#19405 No way to truncate a partition BUG#23603 Partitions: reorganize means delete BUG#41210 cannot truncate a partition individually Questions to solve: 1) Should the auto increment value be reset to 0 for the truncated partitions, or be preserved? 2) Should it be supported for NDB as well? Answers after discussion with Mikael Ronstrm: 1) TRUNCATE TABLE currently resets the auto_increment, so TRUNCATE PARTITION should also reset the auto_increment on that partition, i.e. if the partition has the highest auto_increment value, the auto_increment value will be dropped to the maximum auto_increment value of the non truncated partitions. 2) There is no need to support TRUNCATE PARTITION for NDB, until it supports all the rest of the partitioning handling commands. Add syntax: Use the same code path as TRUNCATE TABLE, but add ALTER_ADMIN_PARTITION to the |
VotesWatches2 members are watching this worklog
You must be logged in to track this worklog.
Provide Feedback
You must be logged in to comment
|
Issue #35031 is concerned. Patch seems to be available.