Purpose
The oceanbase.CDB_PART_TABLES view provides the partitioning 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 | bigint(20) | NO | The tenant ID. |
| OWNER | varchar(128) | NO | The owner of the partitioned table. |
| TABLE_NAME | varchar(128) | NO | The name of the partitioned table. |
| PARTITIONING_TYPE | varchar(13) | NO | The partitioning type: |
| SUBPARTITIONING_TYPE | varchar(13) | NO | The subpartitioning type: |
| PARTITION_COUNT | bigint(20) | NO | The number of partitions in the table. |
| DEF_SUBPARTITION_COUNT | bigint(20) | NO | For composite partitions, this column indicates the number of subpartitions. |
| PARTITIONING_KEY_COUNT | bigint(21) | NO | The number of partitioning keys. |
| SUBPARTITIONING_KEY_COUNT | bigint(21) | NO | For composite partitions, this column indicates the number of subpartitioning keys. |
| STATUS | varchar(8) | NO | This column is currently not supported and defaults to NULL. |
| DEF_TABLESPACE_NAME | varchar(30) | NO | The name of the tablespace for the partitioned table. |
| DEF_PCT_FREE | bigint(0) | NO | This column is currently not supported and defaults to NULL. |
| DEF_PCT_USED | bigint(0) | NO | This column is currently not supported and defaults to NULL. |
| DEF_INI_TRANS | bigint(0) | NO | This column is currently not supported and defaults to NULL. |
| DEF_MAX_TRANS | bigint(0) | NO | This column is currently not supported and defaults to NULL. |
| DEF_INITIAL_EXTENT | varchar(40) | NO | This column is currently not supported and defaults to NULL. |
| DEF_NEXT_EXTENT | varchar(40) | NO | This column is currently not supported and defaults to NULL. |
| DEF_MIN_EXTENTS | varchar(40) | NO | This column is currently not supported and defaults to NULL. |
| DEF_MAX_EXTENTS | varchar(40) | NO | This column is currently not supported and defaults to NULL. |
| DEF_MAX_SIZE | varchar(40) | NO | This column is currently not supported and defaults to NULL. |
| DEF_PCT_INCREASE | varchar(40) | NO | This column is currently not supported and defaults to NULL. |
| DEF_FREELISTS | bigint(0) | NO | This column is currently not supported and defaults to NULL. |
| DEF_FREELIST_GROUPS | bigint(0) | NO | This column is currently not supported and defaults to NULL. |
| DEF_LOGGING | varchar(7) | NO | This column is currently not supported and defaults to NULL. |
| DEF_COMPRESSION | varchar(8) | NO | Indicates whether compression is enabled. |
| DEF_COMPRESS_FOR | varchar(12) | NO | The compression method. |
| DEF_BUFFER_POOL | varchar(7) | NO | This column is currently not supported and defaults to NULL. |
| DEF_FLASH_CACHE | varchar(7) | NO | This column is currently not supported and defaults to NULL. |
| DEF_CELL_FLASH_CACHE | varchar(7) | NO | This column is currently not supported and defaults to NULL. |
| REF_PTN_CONSTRAINT_NAME | varchar(128) | NO | This column is currently not supported and defaults to NULL. |
| INTERVAL | text | YES | This column is currently not supported and defaults to NULL. |
| AUTOLIST | varchar(3) | NO | Indicates whether the table uses auto list partitioning. Valid values: |
| INTERVAL_SUBPARTITION | text | NO | The string value of the subpartition interval. |
| AUTOLIST_SUBPARTITION | varchar(3) | NO | Indicates whether the subpartition uses auto list partitioning. Valid values: |
| IS_NESTED | varchar(3) | NO | This column is currently not supported and defaults to NULL. |
| DEF_SEGMENT_CREATED | varchar(4) | NO | This column is currently not supported and defaults to NULL. |
| DEF_INDEXING | varchar(3) | NO | Indicates the indexing property for the table. Valid values: |
| DEF_INMEMORY | varchar(8) | NO | This column is currently not supported and defaults to NULL. |
| DEF_INMEMORY_PRIORITY | varchar(8) | NO | This column is currently not supported and defaults to NULL. |
| DEF_INMEMORY_DISTRIBUTE | varchar(15) | NO | This column is currently not supported and defaults to NULL. |
| DEF_INMEMORY_COMPRESSION | varchar(17) | NO | This column is currently not supported and defaults to NULL. |
| DEF_INMEMORY_DUPLICATE | varchar(13) | NO | This column is currently not supported and defaults to NULL. |
| DEF_READ_ONLY | varchar(3) | NO | Indicates the default setting for new partitions. Valid values: |
| DEF_CELLMEMORY | varchar(24) | NO | This column is currently not supported and defaults to NULL. |
| DEF_INMEMORY_SERVICE | varchar(12) | NO | This column is currently not supported and defaults to NULL. |
| DEF_INMEMORY_SERVICE_NAME | text | NO | This column is currently not supported and defaults to NULL. |
| AUTO | varchar(3) | NO | Indicates whether the table is auto-partitioned. Valid values: |