Note
This view is introduced in V4.0.0.
Purpose
This view displays the primary partitions of all indexes in all tenants.
Columns
| Column | Type | Nullable? | Description |
|---|---|---|---|
| CON_ID | bigint(20) | NO | The tenant ID. |
| INDEX_OWNER | varchar(128) | NO | The owner of the index. |
| TABLE_NAME | varchar(128) | NO | The name of the table to which the index belongs. |
| INDEX_NAME | varchar(128) | NO | The name of the index. |
| COMPOSITE | varchar(3) | NO | Indicates whether the partition is a local index of a composite-partitioned table. |
| PARTITION_NAME | varchar(128) | NO | The name of the partition. |
| SUBPARTITION_COUNT | bigint(20) | NO | The number of subpartitions. |
| HIGH_VALUE | mediumtext | NO | The expression of the value bound to the partition. |
| HIGH_VALUE_LENGTH | bigint(20) | NO | The length of the expression of the value bound to the partition. |
| PARTITION_POSITION | bigint(20) | NO | The position of the partition in the index. |
| STATUS | varchar(8) | NO | The availability status of the index partition. |
| TABLESPACE_NAME | varchar(30) | NO | The name of the tablespace that contains the partition. |
| PCT_FREE | bigint(0) | NO | Currently, this field is not supported. The default value is NULL. |
| INI_TRANS | bigint(0) | NO | Currently, this field is not supported. The default value is NULL. |
| MAX_TRANS | bigint(0) | NO | Currently, this field is not supported. The default value is NULL. |
| INITIAL_EXTENT | bigint(0) | NO | Currently, this field is not supported. The default value is NULL. |
| NEXT_EXTENT | bigint(0) | NO | Currently, this field is not supported. The default value is NULL. |
| MIN_EXTENT | bigint(0) | NO | Currently, this field is not supported. The default value is NULL. |
| MAX_EXTENT | bigint(0) | NO | Currently, this field is not supported. The default value is NULL. |
| MAX_SIZE | bigint(0) | NO | Currently, this field is not supported. The default value is NULL. |
| PCT_INCREASE | bigint(0) | NO | Currently, this field is not supported. The default value is NULL. |
| FREELISTS | bigint(0) | NO | Currently, this field is not supported. The default value is NULL. |
| FREELIST_GROUPS | bigint(0) | NO | Currently, this field is not supported. The default value is NULL. |
| LOGGING | varchar(7) | NO | Currently, this field is not supported. The default value is NULL. |
| COMPRESSION | varchar(13) | NO | Indicates whether the partition index is enabled for compression: |
| BLEVEL | bigint(0) | NO | Currently, this field is not supported. The default value is NULL. |
| LEAF_BLOCKS | bigint(0) | NO | Currently, this field is not supported. The default value is NULL. |
| DISTINCT_KEYS | bigint(0) | NO | Currently, this field is not supported. The default value is NULL. |
| AVG_LEAF_BLOCKS_PER_KEY | bigint(0) | NO | Currently, this field is not supported. The default value is NULL. |
| AVG_DATA_BLOCKS_PER_KEY | bigint(0) | NO | Currently, this field is not supported. The default value is NULL. |
| CLUSTERING_FACTOR | bigint(0) | NO | Currently, this field is not supported. The default value is NULL. |
| NUM_ROWS | bigint(0) | NO | Currently, this field is not supported. The default value is NULL. |
| SAMPLE_SIZE | bigint(0) | NO | Currently, this field is not supported. The default value is NULL. |
| LAST_ANALYZED | date | NO | Currently, this field is not supported. The default value is NULL. |
| BUFFER_POOL | varchar(7) | NO | Currently, this field is not supported. The default value is NULL. |
| FLASH_CACHE | varchar(7) | NO | Currently, this field is not supported. The default value is NULL. |
| CELL_FLASH_CACHE | varchar(7) | NO | Currently, this field is not supported. The default value is NULL. |
| USER_STATS | varchar(3) | NO | Currently, this field is not supported. The default value is NULL. |
| PCT_DIRECT_ACCESS | bigint(0) | NO | Currently, this field is not supported. The default value is NULL. |
| GLOBAL_STATS | varchar(3) | NO | Currently, this field is not supported. The default value is NULL. |
| DOMIDX_OPSTATUS | varchar(6) | NO | Currently, this field is not supported. The default value is NULL. |
| PARAMETERS | text | NO | Currently, this field is not supported. The default value is NULL. |
| INTERVAL | varchar(3) | NO | Currently, this field is not supported. The default value is NULL. |
| SEGMENT_CREATED | varchar(3) | NO | Currently, this field is not supported. The default value is NULL. |
| ORPHANED_ENTRIES | varchar(3) | NO | Currently, this field is not supported. The default value is NULL. |
Sample query
Query the information about the primary partitions of the index table tbl2_f_rl of the tenant with the ID of 1002 in the system tenant.
obclient [oceanbase]> SELECT * FROM oceanbase.CDB_IND_PARTITIONS WHERE CON_ID=1002 AND TABLE_NAME='tbl2_f_rl'\G
The query result is as follows:
*************************** 1. row ***************************
CON_ID: 1002
INDEX_OWNER: infotest
INDEX_NAME: tbl2_f_rl_idx1
TABLE_NAME: tbl2_f_rl
COMPOSITE: YES
PARTITION_NAME: p0
SUBPARTITION_COUNT: 3
HIGH_VALUE: 100
HIGH_VALUE_LENGTH: 3
PARTITION_POSITION: 1
STATUS: NULL
TABLESPACE_NAME: NULL
PCT_FREE: NULL
INI_TRANS: NULL
MAX_TRANS: NULL
INITIAL_EXTENT: NULL
NEXT_EXTENT: NULL
MIN_EXTENT: NULL
MAX_EXTENT: NULL
MAX_SIZE: NULL
PCT_INCREASE: NULL
FREELISTS: NULL
FREELIST_GROUPS: NULL
LOGGING: NULL
COMPRESSION: DISABLED
BLEVEL: NULL
LEAF_BLOCKS: NULL
DISTINCT_KEYS: NULL
AVG_LEAF_BLOCKS_PER_KEY: NULL
AVG_DATA_BLOCKS_PER_KEY: NULL
CLUSTERING_FACTOR: NULL
NUM_ROWS: NULL
SAMPLE_SIZE: NULL
LAST_ANALYZED: NULL
BUFFER_POOL: NULL
FLASH_CACHE: NULL
CELL_FLASH_CACHE: NULL
USER_STATS: NULL
PCT_DIRECT_ACCESS: NULL
GLOBAL_STATS: NULL
DOMIDX_OPSTATUS: NULL
PARAMETERS: NULL
INTERVAL: NO
SEGMENT_CREATED: NULL
ORPHANED_ENTRIES: NULL
*************************** 2. row ***************************
CON_ID: 1002
INDEX_OWNER: infotest
INDEX_NAME: tbl2_f_rl_idx1
TABLE_NAME: tbl2_f_rl
COMPOSITE: YES
PARTITION_NAME: p1
SUBPARTITION_COUNT: 3
HIGH_VALUE: 200
HIGH_VALUE_LENGTH: 3
PARTITION_POSITION: 2
STATUS: NULL
TABLESPACE_NAME: NULL
PCT_FREE: NULL
INI_TRANS: NULL
MAX_TRANS: NULL
INITIAL_EXTENT: NULL
NEXT_EXTENT: NULL
MIN_EXTENT: NULL
MAX_EXTENT: NULL
MAX_SIZE: NULL
PCT_INCREASE: NULL
FREELISTS: NULL
FREELIST_GROUPS: NULL
LOGGING: NULL
COMPRESSION: DISABLED
BLEVEL: NULL
LEAF_BLOCKS: NULL
DISTINCT_KEYS: NULL
AVG_LEAF_BLOCKS_PER_KEY: NULL
AVG_DATA_BLOCKS_PER_KEY: NULL
CLUSTERING_FACTOR: NULL
NUM_ROWS: NULL
SAMPLE_SIZE: NULL
LAST_ANALYZED: NULL
BUFFER_POOL: NULL
FLASH_CACHE: NULL
CELL_FLASH_CACHE: NULL
USER_STATS: NULL
PCT_DIRECT_ACCESS: NULL
GLOBAL_STATS: NULL
DOMIDX_OPSTATUS: NULL
PARAMETERS: NULL
INTERVAL: NO
SEGMENT_CREATED: NULL
ORPHANED_ENTRIES: NULL
2 rows in set