143 uint32_t in_flags,
bool is_create);
uint32_t space_id_t
Tablespace identifier.
Definition: api0api.h:50
uint32_t page_no_t
Page number.
Definition: api0api.h:48
Data structure that contains the information about shared tablespaces.
Definition: fsp0space.h:46
dberr_t
Definition: db0err.h:38
dberr_t dict_build_tablespace(trx_t *trx, Tablespace *tablespace)
Builds a tablespace to store various objects.
Definition: dict0crea.cc:94
dict_index_t * dict_sdi_create_idx_in_mem(space_id_t space, bool space_discarded, uint32_t in_flags, bool is_create)
Create in-memory tablespace dictionary index & table.
Definition: dict0crea.cc:651
void dict_drop_temporary_table_index(const dict_index_t *index, page_no_t root_page_no)
Drop an index tree belonging to a temporary table.
Definition: dict0crea.cc:452
static ulint dict_get_v_col_pos(ulint pos)
Get a virtual column sequence (the "nth" virtual column) for a virtual column, stord in the "POS" fie...
void dict_table_assign_new_id(dict_table_t *table)
Assign a new table ID and put it into the table cache and the transaction.
Definition: dict0crea.cc:634
static ulint dict_create_v_col_pos(ulint v_pos, ulint col_pos)
Compose a column number for a virtual column, stored in the "POS" field of Sys_columns.
static dberr_t dict_create_add_foreign_id(ulint *id_nr, const char *name, dict_foreign_t *foreign)
Generate a foreign key constraint name when it was not named by the user.
dberr_t dict_create_index_tree_in_mem(dict_index_t *index, trx_t *trx)
Creates an index tree for the index if it is not a member of a cluster.
Definition: dict0crea.cc:389
bool dict_foreigns_has_s_base_col(const dict_foreign_set &local_fk_set, const dict_table_t *table)
Check if a foreign constraint is on columns served as base columns of any stored column.
Definition: dict0crea.cc:570
dberr_t dict_build_table_def(dict_table_t *table, const HA_CREATE_INFO *create_info, trx_t *trx)
Build a table definition without updating SYSTEM TABLES.
Definition: dict0crea.cc:61
void dict_build_index_def(const dict_table_t *table, dict_index_t *index, trx_t *trx)
Builds an index definition but doesn't update sys_table.
Definition: dict0crea.cc:350
dberr_t dict_build_tablespace_for_table(dict_table_t *table, const HA_CREATE_INFO *create_info, trx_t *trx)
Builds a tablespace to contain a table, using file-per-table=1.
Definition: dict0crea.cc:178
static ulint dict_get_v_col_mysql_pos(ulint pos)
Get the column number for a virtual column (the column position in original table),...
Database object creation.
std::set< dict_foreign_t *, dict_foreign_compare, ut::allocator< dict_foreign_t * > > dict_foreign_set
Definition: dict0mem.h:1746
Data dictionary global types.
General shared tablespace implementation.
static PFS_engine_table_share_proxy table
Definition: pfs.cc:60
Query graph global types.
Row operation global types.
case opt name
Definition: sslopt-case.h:32
Struct to hold information about the table that should be created.
Definition: handler.h:3091
Data structure for newly added virtual column in a table.
Definition: dict0mem.h:834
Data structure for a foreign key constraint; an example: FOREIGN KEY (A, B) REFERENCES TABLE2 (C,...
Definition: dict0mem.h:1665
Data structure for an index.
Definition: dict0mem.h:1045
Data structure for a database table.
Definition: dict0mem.h:1908
Structure for an SQL data tuple of fields (logical record)
Definition: data0data.h:681
Definition: dict0crea.h:147
const dict_add_v_col_t * add_v
new virtual columns that being added along with an add index call
Definition: dict0crea.h:168
ulint page_no
Definition: dict0crea.h:162
ulint field_no
Definition: dict0crea.h:165
mem_heap_t * heap
memory heap used as auxiliary storage
Definition: dict0crea.h:166
ins_node_t * field_def
child node which does the inserts of the field definitions; the row to be inserted is built by the pa...
Definition: dict0crea.h:155
ulint state
node execution state
Definition: dict0crea.h:161
que_common_t common
node type: QUE_NODE_INDEX_CREATE
Definition: dict0crea.h:148
dict_index_t * index
index to create, built as a memory data structure with dict_mem_... functions
Definition: dict0crea.h:149
ins_node_t * ind_def
child node which does the insert of the index definition; the row to be inserted is built by the pare...
Definition: dict0crea.h:152
dtuple_t * ind_row
Definition: dict0crea.h:164
dict_table_t * table
table which owns the index
Definition: dict0crea.h:163
Definition: row0ins.h:161
The info structure stored at the beginning of a heap block.
Definition: mem0mem.h:301
Definition: que0types.h:50
Definition: dict0crea.h:111
ins_node_t * col_def
child node which does the inserts of the column definitions; the row to be inserted is built by the p...
Definition: dict0crea.h:119
que_common_t common
node type: QUE_NODE_TABLE_CREATE
Definition: dict0crea.h:112
ulint state
node execution state
Definition: dict0crea.h:129
ulint base_col_no
next base column to insert
Definition: dict0crea.h:131
dict_table_t * table
table to create, built as a memory data structure with dict_mem_... functions
Definition: dict0crea.h:113
ulint col_no
next column definition to insert
Definition: dict0crea.h:130
ins_node_t * tab_def
child node which does the insert of the table definition; the row to be inserted is built by the pare...
Definition: dict0crea.h:116
ins_node_t * v_col_def
child node which does the inserts of the sys_virtual row definitions; the row to be inserted is built...
Definition: dict0crea.h:123
mem_heap_t * heap
memory heap used as auxiliary storage
Definition: dict0crea.h:132
Definition: trx0trx.h:685
Version control for database, common definitions, and include files.
unsigned long int ulint
Definition: univ.i:405