Bug #36179 | ALTER TABLE creates a temporary table in the same directory as the original tabl | ||
---|---|---|---|
Submitted: | 17 Apr 2008 14:14 | Modified: | 18 Apr 2008 5:13 |
Reporter: | Glen Solsberry | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: General | Severity: | S2 (Serious) |
Version: | 5.1.23 | OS: | Linux |
Assigned to: | CPU Architecture: | Any | |
Tags: | alter, table, temporary |
[17 Apr 2008 14:14]
Glen Solsberry
[18 Apr 2008 5:13]
Valeriy Kravchuk
This is not a bug. Manual clearly says (http://dev.mysql.com/doc/refman/5.1/en/alter-table.html): "The temporary table is created in the database directory of the new table. This can be different from the database directory of the original table if ALTER TABLE is renaming the table to a different database." There is a good reason for this. Renaming temporary table is possible as fast operation only in frames of the same filesystem.