Note
This view is available starting with V4.3.0.
Purpose
The CDB_MVREF_STATS_SYS_DEFAULTS view displays the system-level default values of the statistics attributes for the history of materialized view refreshes.
Columns
| Column | Type | Nullable | Description |
|---|---|---|---|
| TENANT_ID | bigint(20) | NO | The tenant ID. |
| PARAMETER_NAME | varchar(16) | NO | The name of the parameter. Valid values:
|
| VALUE | varchar(40) | NO | The system-level default value of the parameter. |
Sample query
Query the system-level default values of the statistics attributes for the history of materialized view refreshes.
obclient [test_db]> SELECT * FROM oceanbase.CDB_MVREF_STATS_SYS_DEFAULTS;
The query result is as follows:
+-----------+------------------+---------+
| TENANT_ID | PARAMETER_NAME | VALUE |
+-----------+------------------+---------+
| 1 | COLLECTION_LEVEL | TYPICAL |
| 1 | RETENTION_PERIOD | 31 |
| 1002 | COLLECTION_LEVEL | TYPICAL |
| 1002 | RETENTION_PERIOD | 31 |
| 1004 | COLLECTION_LEVEL | TYPICAL |
| 1004 | RETENTION_PERIOD | 31 |
+-----------+------------------+---------+
6 rows in set (0.015 sec)