Meta Table

Index

The Meta Tables are tables that present the schema information of Machbase. The table names begin with “M$”.

These tables hold the table name, column information, and index information, and reflect the creation, modification and deletion information resulting from the DDL statement. The Meta Tables can not be added, deleted, or changed by the user.

User Objects

M$SYS_TABLES


Displays the table created by the user.

Column NameDescription
NAMETable name
TYPETable type
- 0: Log
- 1: Fixed
- 3: Volatile
- 4: Lookup
- 5: Key Value
- 6: Tag
DATABASE_IDDatabase identifier
IDTable identifier
USER IDUser of created table
COLCOUNTNumber of columns
FLAGclassification Table Type
- 1 : Tag Data Table
- 2 : Rollup Table
- 4 : Tag Meta Table
- 8 : Tag Stat Table

M$SYS_TABLE_PROPERTY


Displays table property information applied to each table.

Column NameDescription
IDTable identifier
NAMEProperty Name
VALUEProperty Value

M$SYS_COLUMNS


Displays the column information of the user table displayed in M$SYS_TABLES.

Column NameDescription
NAMEColumn name
TYPEColumn type
DATABASE_IDDatabase identifier
IDColumn identifier
LENGTHColumn length
TABLE_IDTable identifier of column
FLAG(Information for internal use of the server)
PART_PAGE_COUNTPages per partition
PAGE_VALUE_COUNTNumber of data per page
MINMAX_CACHE_SIZESize of MIN-MAX cache
MAX_CACHE_PART_COUNTMaximum number of partition caches

M$SYS_INDEXES


Displays the index information generated by the user.

Column NameDescription
NAMEIndex name
TYPEIndex type
DATABASE_IDDatabase identifier
IDIndex identifier
TABLE_IDTable of index identifier
COLCOUNTNumber of columns of created index
PART_VALUE_COUNTNumber of data per partition of index table
BLOOM_FILTERAvailability of Bloom Filter
KEY_COMPRESSCompression status of key values
MAX_LEVELMaximum level of index (LSM only)
PAGE_SIZEPage size
MAX_KEYWORD_SIZEMaximum keyword length (keyword only)
BITMAP_ENCODEBitmap encoding type (RANGE / EQUAL)

M$SYS_INDEX_COLUMNS


Displays the column information of the user index shown in M$SYS_INDEXES.

Column NameDescription
INDEX_IDIndex identifier
INDEX_TYPEIndex type
NAMEColumn name
COL_IDColumn identifier
DATABASE_IDDatabase identifier
TABLE_IDTable identifier
TYPEData type of column

M$SYS_TABLESPACES


Displays the table space information created by the user.

Column NameDescription
NAMETablespace name
IDTablespace identifier
DISK_COUNTNumber of disks in tablespace

M$SYS_TABLESPACE_DISKS


Maintains the disk information used by the tablespace.

Column NameDescription
NAMEDisk name
IDDisk identifier
TABLESPACE_IDDisk tablespace identifier
PATHDisk path
IO_THREAD_COUNTNumber of IO threads allocated to this disk
VIRTUAL_DISK_COUNTNumber of Virtual Disk units assigned to this disk

M$SYS_USERS


Maintain user information registered in Machbase.

Column NameDescription
USER_IDUser identifier
NAMEUser name

M$RETENTION


Displays the RETENTION POLICY information.

Column NameDescription
USER_IDUser ID
POLICY_NAMEpolicy name
DURATIONretention period(sec)
INTERVALupdate cycle(sec)

Others

M$TABLES


Display all meta tables beginning with M$.

Column NameDescription
NAMEMeta table name
TYPETable type
DATABASE_IDDatabase identifier
IDMeta table identifier
USER IDTable user (in this case, SYS)
COLCOUNTNumber of columns

M$COLUMNS


Displays the column information of the meta table displayed in M​$TABLES.

Column NameDescription
NAMEColumn name
TYPEColumn type
DATABASE_IDDatabase identifier
IDColumn identifier
LENGTHColumn length
TABLE_IDColumn table identifier
FLAG(Information for internal use of the server)
PART_PAGE_COUNTPages per partition
PAGE_VALUE_COUNTNumber of data per page
MINMAX_CACHE_SIZESize of MIN-MAX cache
MAX_CACHE_PART_COUNTMaximum number of partition caches
Last updated on