Bug #7941 | documentation of SHOW TABLE STATUS; max_data_length | ||
---|---|---|---|
Submitted: | 16 Jan 2005 17:14 | Modified: | 25 Feb 2005 18:20 |
Reporter: | Martin Friebe (Gold Quality Contributor) (OCA) | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Documentation | Severity: | S3 (Non-critical) |
Version: | 4.1.9 | OS: | |
Assigned to: | Paul DuBois | CPU Architecture: | Any |
[16 Jan 2005 17:14]
Martin Friebe
[16 Jan 2005 17:23]
Martin Friebe
One more note: avg_row_length for an empty table shows 0 (zero). I believe it should rather be NULL (for unknown), or for a fixed length table, it could also be the actual "will be" length.
[16 Jan 2005 17:33]
Martin Friebe
the last note applies to MyIsam tables. Heap tables do show the avg length for empty tables. So the behaviour is inconsistent between engines. create table mem1 (a varchar(10)) ENGINE=HEAP; create table mem2 (a char(10)) ENGINE=HEAP; create table isam1 (a varchar(10)) ENGINE=HEAP; create table isam2 (a char(10)) ENGINE=HEAP; show table status; +------+--------+---------+------------+------+----------------+-------------+-- | Name | Engine | Version | Row_format | Rows | Avg_row_length | Data_length | +------+--------+---------+------------+------+----------------+-------------+-- | mem1 | HEAP | 9 | Dynamic | 0 | 11 | 0 | | mem2 | HEAP | 9 | Fixed | 0 | 11 | 0 | | isam1 | MyISAM | 9 | Dynamic | 0 | 0 | 0 | | isam2 | MyISAM | 9 | Fixed | 0 | 0 | 0 | +-------+--------+---------+------------+------+----------------+-------------+--
[25 Feb 2005 18:20]
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 product(s). Additional info: There are a couple of aspects to this report. 1) I've updated the SHOW TABLE status section to indicate that Max_data_length is the max number of bytes (without distinction between Fixed and Dynamic row format). 2) The request for a change in Avg_row_length is a request for a change in behavior. Martin, this can be filed as a feature request, on the basis that the current behavior is inconsistent as you note. Thanks for the report.