Bug #81587 | Combining ALTER operations triggers table rebuild | ||
---|---|---|---|
Submitted: | 25 May 2016 9:15 | Modified: | 24 Jul 2016 12:49 |
Reporter: | Daniël van Eeden (OCA) | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: DDL | Severity: | S3 (Non-critical) |
Version: | 5.6.27, 5.6.30, 5.7.12 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[25 May 2016 9:15]
Daniël van Eeden
[26 May 2016 8:14]
MySQL Verification Team
Hello Daniël, Thank you for the report. Observed this at my end on 5.6.30 build. First three operations took no time, where as 4th one took 1+min. ALTER TABLE t1 DEFAULT CHARSET=latin1; ALTER TABLE t1 MODIFY COLUMN `c1` timestamp NOT NULL DEFAULT '1970-01-01 01:00:01'; ALTER TABLE t1 MODIFY COLUMN `c2` timestamp NOT NULL DEFAULT '1970-01-01 01:00:01'; ALTER TABLE t1 MODIFY COLUMN `c1` timestamp NOT NULL DEFAULT '1970-01-01 01:00:01',MODIFY COLUMN `c2` timestamp NOT NULL DEFAULT '1970-01-01 01:00:01',DEFAULT CHARSET=latin1; Thanks, Umesh
[24 Jul 2016 12:49]
Paul DuBois
Posted by developer: Noted in 5.6.33, 5.7.15 changelogs. In-place ALTER TABLE operations which when executed separately caused no table rebuild could when combined into a single statement result in a table rebuid.