Bug #30670 | max_heap_table_size is not enforced correctly | ||
---|---|---|---|
Submitted: | 28 Aug 2007 13:35 | Modified: | 31 Jul 2008 1:44 |
Reporter: | Peter Zaitsev (Basic Quality Contributor) | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Documentation | Severity: | S3 (Non-critical) |
Version: | 5.0.45, 4.1, 5.0, 5.1, 5.2 BK | OS: | Any |
Assigned to: | Paul DuBois | CPU Architecture: | Any |
Tags: | qc |
[28 Aug 2007 13:35]
Peter Zaitsev
[27 Sep 2007 8:44]
Sveta Smirnova
Thank you for the report. According to http://dev.mysql.com/doc/refman/5.1/en/server-system-variables.html#option_mysqld_max_heap...: max_heap_table_size This variable sets the maximum size to which MEMORY tables are allowed to grow. The value of the variable is used to calculate MEMORY table MAX_ROWS values. Setting this variable has no effect on any existing MEMORY table, unless the table is re-created with a statement such as CREATE TABLE or altered with ALTER TABLE or TRUNCATE TABLE. First 2 parts of the report is not a bug. Verified last part: changing Max_data_length of the existing table after server restart.
[27 Sep 2007 8:45]
Sveta Smirnova
Workaround: use MAX_ROWS
[18 Mar 2008 12:00]
Sergey Vojtovich
Internally MEMORY table gets created when it is opened for the first time (after server restart). That's why it uses current max_heap_table_size. I'm reassigning this bug to Docs team, to clarify that fact. As I think that current max_heap_table_size purpose is misleading, I created WL#4313. Docs team: please update Server variables section around max_heap_table_size description. It should state that max_heap_table_size has no effect on any MEMORY tables that were accessed after server restart: Setting this variable has no effect on any MEMORY table that were accessed after server restart, unless the table is re-created with a statement such as CREATE TABLE or altered with ALTER TABLE or TRUNCATE TABLE.
[31 Jul 2008 1:44]
Paul DuBois
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.