[MDEV-7085] innodb index stats miscounted index fields Created: 2014-11-12 Updated: 2014-11-13 Due: 2014-12-12 Resolved: 2014-11-13 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - XtraDB |
| Affects Version/s: | 5.5.40 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Daniel Black | Assignee: | Unassigned |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | None | ||
| Environment: |
centos6-amd64 |
||
| Description |
|
idx_obs_daily_1 has 3 fields not 4.
|
| Comments |
| Comment by Arjen Lentz [ 2014-11-12 ] | ||||||||||
|
Of course we know that in InnoDB, non-PK indexes also contain the value of the primary key as the last field of the index, except this is internal and hidden from the visible table structure. To "unconfuse" it, the INNODB_INDEX_STATS output could just colcount-1 for any non-PK index. | ||||||||||
| Comment by Daniel Black [ 2014-11-12 ] | ||||||||||
|
Other database servers like above showed 3 for the same schema | ||||||||||
| Comment by Sergei Golubchik [ 2014-11-12 ] | ||||||||||
|
I cannot repeat this, I'm getting the same result as on your "other database servers". | ||||||||||
| Comment by Elena Stepanova [ 2014-11-12 ] | ||||||||||
|
I cannot either, although I can get 3 fields for idx_obs_daily_2 if I try hard enough:
In any case, this is documented explicitly in Percona docs:
| ||||||||||
| Comment by Elena Stepanova [ 2014-11-12 ] | ||||||||||
|
Given that it's "design", explicitly documented by Percona, and that the table doesn't even exist in XtraDB 5.6 / MariaDB 10.0, I suppose the reasonable course of action is not to do anything about it. Does everyone agree? | ||||||||||
| Comment by Daniel Black [ 2014-11-12 ] | ||||||||||
|
fair call. | ||||||||||
| Comment by Elena Stepanova [ 2014-11-13 ] | ||||||||||
|
Is somebody disagrees, please comment to re-open. |