diff --git a/docs/MatrixOne/Reference/1.1-System-tables.md b/docs/MatrixOne/Reference/1.1-System-tables.md index 67e1ae553..7cd3a1960 100644 --- a/docs/MatrixOne/Reference/1.1-System-tables.md +++ b/docs/MatrixOne/Reference/1.1-System-tables.md @@ -240,7 +240,7 @@ Start with MatrixOne 0.6 has introduced the concept of multi-account, the defaul | options | TEXT(0) | options option information for index | | index_table_name | VARCHAR(5000) | The table name of the index table corresponding to the index, currently only the unique index contains the index table | -## mo_sessions view +### mo_sessions view | Column | Type | comments | | --------------- | ----------------- | ------------------------------------------------------------ | @@ -263,6 +263,18 @@ Start with MatrixOne 0.6 has introduced the concept of multi-account, the defaul | client_host | VARCHAR(65535) | IP address and port of the client. | | role | VARCHAR(65535) | Role name of the user. | +### mo_locks view + +| Column | Type | comments | +| ------------- | --------------- | ------------------------------------------------ | +| txn_id | VARCHAR(65535) | Transaction holding the lock. | +| table_id | VARCHAR(65535) | The table on which the lock is placed. | +| lock_type | VARCHAR(65535) | Type of lock, which can be `point` or `range`. | +| lock_content | VARCHAR(65535) | Locked content, represented in hexadecimal. For `range` locks, it represents a range; for `point` locks, it represents a single value. | +| lock_mode | VARCHAR(65535) | Lock mode, which can be `shared` or `exclusive`.| +| lock_status | VARCHAR(65535) | Lock status can be `wait`, `acquired`, or `none`.
`wait`: No transaction holds the lock, but transactions are waiting for it.
`acquired`: A transaction holds the lock.
`none`: No transaction holds the lock, and no transactions await it. | +| waiting_txns | VARCHAR(65535) | Transactions waiting on this lock. | + ## `system_metrics` database `system_metrics` collect the status and statistics of SQL statements, CPU & memory resource usage.