Purpose
The oceanbase.CDB_SUBPARTITION_TEMPLATES view provides the subpartitioning information of the partitioned tables of all tenants.
Note
This view is introduced since OceanBase Database V4.0.0.
Columns
| Column | Type | Nullable? | Description |
|---|---|---|---|
| CON_ID | decimal(10,0) | NO | The ID of the tenant. |
| USER_NAME | varchar(128) | NO | The owner of the partitioned table. |
| TABLE_NAME | varchar(128) | NO | The name of the partitioned table. |
| SUBPARTITION_NAME | varchar(132) | NO | The name of the subpartition. |
| SUBPARTITION_POSITION | BIGINT(21) | NO | The position of the subpartition. |
| TABLESPACE_NAME | varchar(30) | NO | The name of the tablespace containing the partition. |
| HIGH_BOUND | varchar(262144) | NO | The partition template expression. |
| COMPRESSION | varchar(4) | NO | Indicates whether the subpartition data is stored in compression format for each newly added composite partition in the subpartition template. Valid values: This value can be specified in the subpartition template. |
| INDEXING | varchar(4) | NO | Indicates whether the subpartition data is taken as a part of the indexes for each newly added composite partition in the subpartition template. Valid values: This value can be specified in the subpartition template. |
| READ_ONLY | varchar(4) | NO | Indicates whether the subpartition data is read only in each newly added composite partition in the subpartition template. Valid values: This value can be specified in the subpartition template. |