1#ifndef DD_SQL_VIEW_INCLUDED
2#define DD_SQL_VIEW_INCLUDED
146 const char *new_table_name,
bool commit_dd_changes,
194 bool skip_same_db,
bool commit_dd_changes,
227 const char *view_name);
A typesafe replacement for DYNAMIC_ARRAY.
Definition: prealloced_array.h:71
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:36
Guard class which allows to invalidate TDC entries for specific tables/views.
Definition: dd_sql_view.h:40
~Uncommitted_tables_guard()
Definition: dd_sql_view.cc:208
Uncommitted_tables_guard(THD *thd)
Definition: dd_sql_view.h:42
THD * m_thd
Definition: dd_sql_view.h:49
void add_table(Table_ref *table)
Definition: dd_sql_view.h:46
Prealloced_array< Table_ref *, 1 > m_uncommitted_tables
Definition: dd_sql_view.h:50
Definition: sp_head.h:123
static MEM_ROOT mem_root
Definition: client_plugin.cc:114
bool update_referencing_views_metadata(THD *thd, const char *db_name, const char *table_name, bool commit_dd_changes, Uncommitted_tables_guard *uncommitted_tables)
Update metadata of views referencing the table.
Definition: dd_sql_view.cc:803
std::string push_view_warning_or_error(THD *thd, const char *db, const char *view_name)
Push error or warnings in case a view is invalid and return the error message to the caller.
Definition: dd_sql_view.cc:898
bool mark_referencing_views_invalid(THD *thd, const Table_ref *table, bool skip_same_db, bool commit_dd_changes, MEM_ROOT *mem_root)
Mark views referencing the table as invalid.
Definition: dd_sql_view.cc:872
static constexpr unsigned PSI_INSTRUMENT_ME
Definition: psi_bits.h:43
static PFS_engine_table_share_proxy table
Definition: pfs.cc:61
const char * table_name
Definition: rules_table_service.cc:56
const char * db_name
Definition: rules_table_service.cc:55
Performance schema instrumentation interface.
The MEM_ROOT is a simple arena, where allocations are carved out of larger blocks.
Definition: my_alloc.h:83