Skip to content

Commit

Permalink
Update 1.1-System-tables.md
Browse files Browse the repository at this point in the history
  • Loading branch information
lacrimosaprinz authored Sep 21, 2023
1 parent 1056eae commit 35f5c79
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion docs/MatrixOne/Reference/1.1-System-tables.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
| --------------- | ----------------- | ------------------------------------------------------------ |
Expand All @@ -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`.<br>`wait`: No transaction holds the lock, but transactions are waiting for it.<br>`acquired`: A transaction holds the lock.<br>`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.
Expand Down

0 comments on commit 35f5c79

Please sign in to comment.