MySQL 8.3.0
Source Code Documentation
table_stats.cc File Reference

Classes

class  anonymous_namespace{table_stats.cc}::Update_I_S_statistics_ctx
 A RAII to used to allow updates in the DD tables mysql.index_stats and mysql.index_stats. More...
 

Namespaces

namespace  anonymous_namespace{table_stats.cc}
 
namespace  dd
 The version of the current data dictionary table definitions.
 
namespace  dd::info_schema
 

Functions

bool anonymous_namespace{table_stats.cc}::can_persist_I_S_dynamic_statistics (THD *thd, const char *schema_name, const char *partition_name)
 Update the data in the mysql.index_stats table if,. More...
 
bool anonymous_namespace{table_stats.cc}::is_persistent_statistics_expired (THD *thd, const ulonglong &cached_timestamp)
 
template<typename T >
bool anonymous_namespace{table_stats.cc}::store_statistics_record (THD *thd, T *object)
 Store the statistics into DD tables mysql.table_stats and mysql.index_stats. More...
 
template bool anonymous_namespace{table_stats.cc}::store_statistics_record (THD *thd, dd::Table_stat *)
 
template bool anonymous_namespace{table_stats.cc}::store_statistics_record (THD *thd, dd::Index_stat *)
 
void anonymous_namespace{table_stats.cc}::setup_table_stats_record (THD *thd, dd::Table_stat *obj, dd::String_type schema_name, dd::String_type table_name, const ha_statistics &stats, ulonglong checksum, bool has_checksum, bool has_autoinc)
 
void anonymous_namespace{table_stats.cc}::setup_index_stats_record (THD *thd, dd::Index_stat *obj, dd::String_type schema_name, dd::String_type table_name, dd::String_type index_name, dd::String_type column_name, ulonglong records)
 
static bool anonymous_namespace{table_stats.cc}::persist_i_s_table_stats (THD *thd, const ha_statistics &stats, const String &schema_name_ptr, const String &table_name_ptr, const ulonglong &checksum)
 Get dynamic table statistics of a table and store them into mysql.table_stats. More...
 
static bool anonymous_namespace{table_stats.cc}::persist_i_s_index_stats (THD *thd, const String &schema_name_ptr, const String &table_name_ptr, const String &index_name_ptr, const String &column_name_ptr, ulonglong records)
 Get dynamic index statistics of a table and store them into mysql.index_stats. More...
 
static bool anonymous_namespace{table_stats.cc}::report_error_except_ignore_dup (THD *thd, const char *object_type)
 
bool dd::info_schema::update_table_stats (THD *thd, Table_ref *table)
 Get dynamic table statistics of a table and store them into mysql.table_stats. More...
 
bool dd::info_schema::update_index_stats (THD *thd, Table_ref *table)
 Get dynamic index statistics of a table and store them into mysql.index_stats. More...
 
bool dd::info_schema::convert_table_name_case (char *db, char *table_name)
 If the db is 'information_schema' then convert 'db' to lowercase and 'table_name' to upper case. More...