Purpose
The oceanbase.CDB_PART_INDEXES view provides the partitioning information of the index 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. |
| OWNER | varchar(128) | NO | The owner of the partitioned index. |
| INDEX_NAME | varchar(128) | NO | The name of the partitioned index. |
| TABLE_NAME | varchar(128) | NO | The name of the table that is associated with the index. |
| PARTITIONING_TYPE | varchar(13) | NO | The partitioning method. Valid values: |
| SUBPARTITIONING_TYPE | varchar(13) | NO | The subpartitioning method. Valid values: |
| PARTITION_COUNT | bigint(20) | NO | The number of partitions in the index. |
| DEF_SUBPARTITION_COUNT | bigint(20) | NO | The default number of subpartitions for a composite-partitioned index (if specified). |
| PARTITIONING_KEY_COUNT | BIGINT(21) | NO | The number of columns in the partitioning key. |
| SUBPARTITIONING_KEY_COUNT | BIGINT(21) | NO | The number of columns in the subpartitioning key for a composite-partitioned index. |
| LOCALITY | varchar(6) | NO | The locality for the partitioned index. Valid values: LOCAL and GLOBAL. |
| ALIGNMENT | varchar(12) | NO | Indicates whether the partitioned index is prefixed or non-prefixed. |
| DEF_TABLESPACE_NAME | varchar(30) | NO | The default tablespace for a local index when a table partition is added or split. |
| DEF_PCT_FREE | bigint(1) | NO | The default PCTFREE value for a local index when a table partition is added. |
| DEF_INI_TRANS | bigint(1) | NO | The default initial number of transactions for a local index when a table partition is added. |
| DEF_MAX_TRANS | bigint(1) | NO | The default maximum number of transactions for a local index when a table partition is added. |
| DEF_INITIAL_EXTENT | varchar(40) | NO | The default INITIAL value for a local index when a table partition is added. If no INITIAL value was specified, the value is DEFAULT. |
| DEF_NEXT_EXTENT | varchar(40) | NO | The default NEXT value for a local index when a table partition is added. If no NEXT value was specified, the value is DEFAULT. |
| DEF_MIN_EXTENTS | varchar(40) | NO | The default MINEXTENTS value for a local index when a table partition is added. If no INITIAL value was specified, the value is DEFAULT. |
| DEF_MAX_EXTENTS | varchar(40) | NO | The default MAXEXTENTS value for a local index when a table partition is added. If no INITIAL value was specified, the value is DEFAULT. |
| DEF_MAX_SIZE | varchar(40) | NO | The default MAXSIZE value for a local index when a table partition is added. If no MAXSIZE value was specified, the value is DEFAULT. |
| DEF_PCT_INCREASE | varchar(40) | NO | The default PCTINCREASE value for a local index when a table partition is added. If no PCTINCREASE value was specified, the value is DEFAULT. |
| DEF_FREELISTS | bigint(1) | NO | The default FREELISTS value for a local index when a table partition is added. |
| DEF_FREELIST_GROUPS | bigint(1) | NO | The default FREELIST GROUPS value for a local index when a table partition is added. |
| DEF_LOGGING | varchar(7) | NO | The default LOGGING value for a local index when a table partition is added. At present, this column is not used and is NULL by default. |
| DEF_BUFFER_POOL | varchar(7) | NO | The default buffer pool for a local index when a table partition is added. At present, this column is not used and is NULL by default. |
| DEF_FLASH_CACHE | varchar(7) | NO | The default database smart flash cache hint for a local index when a table partition is added. At present, this column is not used and is NULL by default. |
| DEF_CELL_FLASH_CACHE | varchar(7) | NO | The default cell flash cache hint for a local index when a table partition is added. At present, this column is not used and is NULL by default. |
| DEF_PARAMETERS | text | NO | The default parameter string for a domain index. |
| INTERVAL | text | NO | The character string that defines intervals. |
| AUTOLIST | varchar(3) | NO | Indicates whether the local index is partitioned through the automatic list. Valid values: |
| INTERVAL_SUBPARTITION | text | NO | At present, this column is not supported and is NULL by default. |
| AUTOLIST_SUBPARTITION | text | NO | At present, this column is not supported and is NULL by default. |