MySQL 9.1.0
Source Code Documentation
anonymous_namespace{sql_select.cc} Namespace Reference

Classes

class  store_key_const_item
 
class  store_key_json_item
 

Functions

bool has_secondary_engine_defined (const LEX *lex, const Table_ref **tref)
 
void accumulate_statement_cost (const LEX *lex)
 Calculates the cost of executing a statement, including all its subqueries and stores it in thd->m_current_query_cost. More...
 
bool SecondaryEngineCallPrePrepareHook (THD *thd, const LEX_CSTRING &secondary_engine)
 Gets the secondary storage engine pre prepare hook function, if any. More...
 
std::optional< LEX_CSTRINGretry_with_secondary_engine (THD *thd)
 Checks if the current query is a candidate for being retried in the secondary engine. More...
 

Function Documentation

◆ accumulate_statement_cost()

void anonymous_namespace{sql_select.cc}::accumulate_statement_cost ( const LEX lex)

Calculates the cost of executing a statement, including all its subqueries and stores it in thd->m_current_query_cost.

Parameters
lexthe statement

◆ has_secondary_engine_defined()

bool anonymous_namespace{sql_select.cc}::has_secondary_engine_defined ( const LEX lex,
const Table_ref **  tref 
)

◆ retry_with_secondary_engine()

std::optional< LEX_CSTRING > anonymous_namespace{sql_select.cc}::retry_with_secondary_engine ( THD thd)

Checks if the current query is a candidate for being retried in the secondary engine.

Parameters
thdThe current session.
Returns
The name of the secondary engine in which the current query can be retried, or an empty value if it should not be retried.

◆ SecondaryEngineCallPrePrepareHook()

bool anonymous_namespace{sql_select.cc}::SecondaryEngineCallPrePrepareHook ( THD thd,
const LEX_CSTRING secondary_engine 
)

Gets the secondary storage engine pre prepare hook function, if any.

If no hook is found, this function returns false. If hook function is found, it returns the return value of the hook. Please refer to secondary_engine_pre_prepare_hook_t definition for description of its return value.