MySQL  8.0.27
Source Code Documentation
opt_costconstantcache.h File Reference
#include <assert.h>
#include <stddef.h>
#include "mysql/components/services/mysql_mutex_bits.h"
#include "mysql/psi/mysql_mutex.h"
#include "sql/opt_costconstants.h"

Go to the source code of this file.

Classes

class  Cost_constant_cache
 This class implements a cache for "cost constant sets". More...
 

Functions

void init_optimizer_cost_module (bool enable_plugins)
 Initializes the optimizer cost module. More...
 
void delete_optimizer_cost_module ()
 Deletes the optimizer cost module. More...
 
void reload_optimizer_cost_constants ()
 Reloads the optimizer cost constants from the cost constant tables. More...
 

Function Documentation

◆ delete_optimizer_cost_module()

void delete_optimizer_cost_module ( )

Deletes the optimizer cost module.

This should be called when the server stops to release allocated resources.

◆ init_optimizer_cost_module()

void init_optimizer_cost_module ( bool  enable_plugins)

Initializes the optimizer cost module.

This should be done during startup from mysqld.cc.

◆ reload_optimizer_cost_constants()

void reload_optimizer_cost_constants ( )

Reloads the optimizer cost constants from the cost constant tables.

Note
In order to read the cost constant tables, a THD is needed. This function will create a new temporary THD that will be used for this. In case the caller already has a THD this will not be used.