MySQL 8.0.30
Source Code Documentation
init.cc File Reference
#include "sql/dd/performance_schema/init.h"
#include <sys/types.h>
#include <list>
#include <new>
#include <ostream>
#include <string>
#include <vector>
#include "lex_string.h"
#include "m_ctype.h"
#include "my_dbug.h"
#include "mysql/thread_type.h"
#include "sql/auth/sql_security_ctx.h"
#include "sql/bootstrap.h"
#include "sql/dd/cache/dictionary_client.h"
#include "sql/dd/dd.h"
#include "sql/dd/dd_schema.h"
#include "sql/dd/dd_table.h"
#include "sql/dd/dd_utility.h"
#include "sql/dd/impl/dictionary_impl.h"
#include "sql/dd/impl/system_registry.h"
#include "sql/dd/impl/tables/dd_properties.h"
#include "sql/dd/impl/utils.h"
#include "sql/dd/properties.h"
#include "sql/dd/string_type.h"
#include "sql/dd/types/object_table.h"
#include "sql/dd/types/object_table_definition.h"
#include "sql/dd/types/table.h"
#include "sql/derror.h"
#include "sql/handler.h"
#include "sql/plugin_table.h"
#include "sql/set_var.h"
#include "sql/sql_class.h"
#include "sql/sql_list.h"
#include "sql/stateless_allocator.h"
#include "sql/system_variables.h"
#include "sql/table.h"
#include "sql/thd_raii.h"

Namespaces

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

Functions

bool anonymous_namespace{init.cc}::create_and_use_pfs_schema (THD *thd)
 Create and use the performance schema. More...
 
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. More...
 
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. More...
 
bool anonymous_namespace{init.cc}::create_pfs_tables (THD *thd)
 Create performance schema tables. More...
 
const dd::String_type anonymous_namespace{init.cc}::SERVER_PS_TABLE_PROPERTY_NAME ("server_p_s_table")
 
bool anonymous_namespace{init.cc}::drop_old_pfs_tables (THD *thd)
 Drop all P_S tables that have the property PS_version. More...
 
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. More...
 
bool anonymous_namespace{init.cc}::initialize_pfs (THD *thd)
 Creates the database performance_schema and tables that the perf_schema consists of. More...
 
bool dd::performance_schema::create_pfs_schema (THD *thd)
 Create the performance schema. More...
 
bool dd::performance_schema::init_pfs_tables (enum_dd_init_type int_type)
 Creates performance schema tables in the Data Dictionary. More...
 
void dd::performance_schema::set_PS_version_for_table (dd::Properties *table_options)
 Store the property "PS_version" in table's options. More...