Created by Sergei Glushchenko and last modified
Get this branch:
bzr branch lp:~sergei.glushchenko/percona-server/5.5-ps-bug1192354
Only Sergei Glushchenko can upload to this branch. If you are Sergei Glushchenko please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Recent revisions

517. By Sergei Glushchenko

Bug 1192354: accessing information_schema.partitions causes plans to change
ha_innodb::info stores statistics for keys in the table structure, which is
shared for all the partitions of the table.
When ha_partition::info is invoked, it calls ha_innodb::info for every
partition, determines which has the maximum number of rows and invokes
ha_innodb::info again for this partition. It sets partitioned table
statistics to the statistics of the largest part.
When i_s.partitions is invoked, it calls ha_innodb::info for every partition
as well, but it doesn't perform the last call to set statistics for the
whole table back. So, the table statistics is set to statistics of the last
query, which is not the best choice in most cases.
This patch implements behavior for i_s.partitions similar to behavior of

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
Stacked on:
This branch contains Public information 
Everyone can see this information.