MySQL 8.0.40
Source Code Documentation
|
Functions | |
bool | list_has_optimizer_trace_table (const Table_ref *tbl) |
Whether a list of tables contains information_schema.OPTIMIZER_TRACE. More... | |
bool | sql_command_can_be_traced (enum enum_sql_command sql_command) |
Whether a SQL command qualifies for optimizer tracing. More... | |
bool | sets_var_optimizer_trace (enum enum_sql_command sql_command, List< set_var_base > *set_vars) |
void | opt_trace_disable_if_no_tables_access (THD *thd, Table_ref *tbl) |
If tracing is on, checks additional privileges on a list of tables/views, to make sure that the user has the right to do SHOW CREATE TABLE/VIEW and "SELECT *". More... | |
Variables | |
const char | I_S_table_name [] = "OPTIMIZER_TRACE" |
bool anonymous_namespace{opt_trace2server.cc}::list_has_optimizer_trace_table | ( | const Table_ref * | tbl | ) |
Whether a list of tables contains information_schema.OPTIMIZER_TRACE.
tbl | list of tables |
void anonymous_namespace opt_trace2server anonymous_namespace{opt_trace2server.cc}::cc::opt_trace_disable_if_no_tables_access | ( | THD * | thd, |
Table_ref * | tbl | ||
) |
If tracing is on, checks additional privileges on a list of tables/views, to make sure that the user has the right to do SHOW CREATE TABLE/VIEW and "SELECT *".
For that:
thd | thread context |
tbl | list of tables to check |
bool anonymous_namespace{opt_trace2server.cc}::sets_var_optimizer_trace | ( | enum enum_sql_command | sql_command, |
List< set_var_base > * | set_vars | ||
) |
|
inline |
Whether a SQL command qualifies for optimizer tracing.
sql_command | the command |
const char anonymous_namespace{opt_trace2server.cc}::I_S_table_name[] = "OPTIMIZER_TRACE" |