25.6.16.23 The ndbinfo dictionary_tables Table (original) (raw)
25.6.16.23 The ndbinfo dictionary_tables Table
This table provides NDB
dictionary information for NDB
tables.dictionary_tables
contains the columns listed here:
table_id
The table' unique IDdatabase_name
Name of the database containing the tabletable_name
Name of the tablestatus
The table status; one ofNew
,Changed
,Retrieved
,Invalid
, orAltered
. (See Object::Status, for more information about object status values.)attributes
Number of table attributesprimary_key_cols
Number of columns in the table's primary keyprimary_key
A comma-separated list of the columns in the table's primary keystorage
Type of storage used by the table; one ofmemory
,disk
, ordefault
logging
Whether logging is enabled for this tabledynamic
1
if the table is dynamic, otherwise0
; the table is considered dynamic if_`table`_->
getForceVarPart() is true, or if at least one table column is dynamicread_backup
1
if read from any replica (READ_BACKUP
option is enabled for this table, otherwise0
; seeSection 15.1.20.12, “Setting NDB Comment Options”)fully_replicated
1
ifFULLY_REPLICATED
is enabled for this table (each data node in the cluster has a complete copy of the table),0
if not; see Section 15.1.20.12, “Setting NDB Comment Options”checksum
If this table uses a checksum, the value in this column is1
; if not, it is0
row_size
The amount of data, in bytes that can be stored in one row, not including any blob data stored separately in blob tables; see Table::getRowSizeInBytes(), in the API documentation, for more informationmin_rows
Minimum number of rows, as used for calculating partitions; see Table::getMinRows(), in the API documentation, for more informationmax_rows
Maximum number of rows, as used for calculating partitions; see Table::getMaxRows(), in the API documentation, for more informationtablespace
ID of the tablespace to which the table belongs, if any; this is0
, if the table does not use data on diskfragment_type
The table's fragment type; one ofSingle
,AllSmall
,AllMedium
,AllLarge
,DistrKeyHash
,DistrKeyLin
,UserDefined
,unused
, orHashMapPartition
; for more information, see Object::FragmentType, in the NDB API documentationhash_map
The hash map used by the tablefragments
Number of table fragmentspartitions
Number of partitions used by the tablepartition_balance
Type of partition balance used, if any; one ofFOR_RP_BY_NODE
,FOR_RA_BY_NODE
,FOR_RP_BY_LDM
,FOR_RA_BY_LDM
,FOR_RA_BY_LDM_X_2
,FOR_RA_BY_LDM_X_3
, orFOR_RA_BY_LDM_X_4
; seeSection 15.1.20.12, “Setting NDB Comment Options”contains_GCI
1
if the table includes a global checkpoint index, otherwise0
single_user_mode
Type of access allowed to the table when single user mode is in effect; one oflocked
,read_only
, orread_write
; these are equivalent to the valuesSingleUserModeLocked
,SingleUserModeReadOnly
, andSingleUserModeReadWrite
, respectively, of the Table::SingleUserMode type in the NDB APIforce_var_part
This is1
if_`table`_->
getForceVarPart() is true for this table, and0
if it is notGCI_bits
Used in testingauthor_bits
Used in testing
The dictionary_tables
table was added in NDB 8.0.29.