MySQL 8.4.0
Source Code Documentation
anonymous_namespace{init.cc} Namespace Reference

Functions

bool create_and_use_pfs_schema (THD *thd)
 Create and use the performance schema. More...
 
bool check_perf_schema_has_correct_version (THD *thd)
 Check that the actual version of performance schema supported by server and the version of performance schema stored in the Data Dictionary are the same. More...
 
String_type build_ddl_drop_ps_table (const String_type &table_name)
 Produce a statement DROP TABLE for a table name specified by the argument. More...
 
bool create_pfs_tables (THD *thd)
 Create performance schema tables. More...
 
const dd::String_type SERVER_PS_TABLE_PROPERTY_NAME ("server_p_s_table")
 
bool drop_old_pfs_tables (THD *thd)
 Drop all P_S tables that have the property PS_version. More...
 
void add_pfs_definition (const Plugin_table *table)
 Produce sql statement to create a P_S table, add a pair table_name/sql_statement into the list of P_S tables to create and register a name of P_S table in the register of known P_S tables. More...
 
bool initialize_pfs (THD *thd)
 Creates the database performance_schema and tables that the perf_schema consists of. More...
 

Function Documentation

◆ add_pfs_definition()

void anonymous_namespace{init.cc}::add_pfs_definition ( const Plugin_table table)

Produce sql statement to create a P_S table, add a pair table_name/sql_statement into the list of P_S tables to create and register a name of P_S table in the register of known P_S tables.

Parameters
tableP_S table definition

◆ build_ddl_drop_ps_table()

String_type anonymous_namespace{init.cc}::build_ddl_drop_ps_table ( const String_type table_name)

Produce a statement DROP TABLE for a table name specified by the argument.

Parameters
table_nameA name of table to drop
Returns
a string representation of a statement DROP TABLE

◆ check_perf_schema_has_correct_version()

bool anonymous_namespace{init.cc}::check_perf_schema_has_correct_version ( THD thd)

Check that the actual version of performance schema supported by server and the version of performance schema stored in the Data Dictionary are the same.

Parameters
thdThread context.
Returns
true in case versions are matched, else false

◆ create_and_use_pfs_schema()

bool anonymous_namespace{init.cc}::create_and_use_pfs_schema ( THD thd)

Create and use the performance schema.

Parameters
thdThread context.
Returns
Upon failure, return true, otherwise false.

◆ create_pfs_tables()

bool anonymous_namespace{init.cc}::create_pfs_tables ( THD thd)

Create performance schema tables.

Parameters
thdThread context.
Returns
Upon failure, return true, otherwise false.

◆ drop_old_pfs_tables()

bool anonymous_namespace{init.cc}::drop_old_pfs_tables ( THD thd)

Drop all P_S tables that have the property PS_version.

Parameters
thdThread context.
Returns
Upon failure, return true, otherwise false.

◆ initialize_pfs()

bool anonymous_namespace{init.cc}::initialize_pfs ( THD thd)

Creates the database performance_schema and tables that the perf_schema consists of.

Parameters
thdThread context.
Returns
Upon failure, return true, otherwise false.

◆ SERVER_PS_TABLE_PROPERTY_NAME()

const dd::String_type anonymous_namespace{init.cc}::SERVER_PS_TABLE_PROPERTY_NAME ( "server_p_s_table"  )