tencent cloud

TDSQL Boundless

Release Notes
Product Introduction
Overview
Scenarios
Product Architecture
Instance Types
Compatibility Notes
Usage specification recommendations
Kernel Features
Kernel Overview
Kernel Version Release Notes
Functionality Features
Performance Features
Billing
Billing Overview
Purchase Method
Pricing Details
Renewal
Overdue Payments
Refund
Getting Started
Creating an Instance
Connect to Instances
User Guide
Data Migration
Data Subscription
Instance Management
Parameter Configuration
Account Management
Security Group
Backup and Restoration
Database Auditing
Tag Management
Use Cases
Technical Evolution and Usage Practices of Online DDL
Lock Mechanism Analysis and Troubleshooting Practices
Data Intelligent Scheduling and Related Practices for Performance Optimization
TDSQL Boundless Selection Guide and Practical Tutorial
Developer Guide
Developer Guide (MySQL Compatibility Mode)
Developer Guide (HBase Compatibility Mode)
Performance Tuning
Performance Tuning Overview
SQL Tuning
DDL Tuning
Performance White Paper
Performance Overview
TPC-C Test
Sysbench Test
API Documentation
History
Introduction
API Category
Making API Requests
Instance APIs
Security Group APIs
Task APIs
Backup APIs
Rollback APIs
Parameter APIs
Database APIs
Data Types
Error Codes
General Reference
System Architecture
SQL Reference
Database Parameter Description
TPC-H benchmark data model reference
Error Code Information
Security and Compliance
FAQs
Agreements
Service Level Agreement
Terms of Service
Privacy Policy
Data Processing And Security Agreement
Contact Us
Glossary

PARTITION_POLICY_PARTITIONS

PDF
포커스 모드
폰트 크기
마지막 업데이트 시간: 2026-02-10 11:06:29

Function

INFORMATION_SCHEMA.PARTITION_POLICY_PARTITIONS is used to query PARTITION POLICY rules in the system. INFORMATION_SCHEMA.PARITTION_POLICIES and INFORMATION_SCHEMA.PARTITION_POLICY_PARTITIONS form the definition of PARTITION POLICY rules, similar to INFORMATION_SCHEMA.TABLES and INFORMATION_SCHEMA.PARTITIONS.
PARTITION POLICY PARTITION is a partition of a PARTITION POLICY, similar to the relationship between PARTITION and TABLE.

Field Description

Field Name
Type
Description
PARTITION_POLICY_ID
BIGINT UNSIGNED
the unique ID of PARTITION POLICY.
PARTITION_POLICY_NAME
VARCHAR(64)
the unique NAME of PARTITION POLICY.
PARTITION_ID
BIGINT UNSIGNED
Each partition of a PARTITION POLICY has a unique ID.
PARTITION_NAME
VARCHAR(64)
Partition NAME.
SUBPARTITION_NAME
VARCHAR(64)
Sub-partition NAME.
PARTITION_ORDINAL_POSITION
INT UNSIGNED
Partition position: the ordinal position of the partition in the table.
SUBPARTITION_ORDINAL_POSITION
INT UNSIGNED
Sub-partition position: the ordinal position of the sub-partition within the partition.
PARTITION_METHOD
VARCHAR(13)
Partition types, common ones include: RANGE, LIST, HASH, KEY.
SUBPARTITION_METHOD
VARCHAR(13)
Sub-partition type.
PARTITION_EXPRESSION
VARCHAR(2048)
The expression of the partition function used in the CREATE TABLE or ALTER TABLE statements for the current partition scheme.
SUBPARTITION_EXPRESSION
VARCHAR(2048)
Subpartition expression, defined in the same way as PARTITION_EXPRESSION.
PARTITION_DESCRIPTION
TEXT
The value rules describing partitions for RANGE and LIST partitioning.
RANGE partitions: contain the values specified in the VALUES LESS THAN clause. The value can be an integer or MAXVALUE.
LIST partitions: contain the values defined in the VALUES IN clause, which is a comma-separated list of integer values.
Other partition types: For partitioning methods other than RANGE and LIST, the PARTITION_DESCRIPTION field is always NULL.
HIDDEN
ENUM
Explicit: user-explicitly created PARTITION policies.
Implicit: database-automatically created implicit PARTITION policies.
SE_PRIVATE_DATA
MEDIUMTEXT
Reserved fields.

Examples

tdsql> SELECT * FROM information_schema.partition_policy_partitions;
+---------------------+-----------------------+--------------+----------------+-------------------+----------------------------+-------------------------------+------------------+---------------------+----------------------+-------------------------+-----------------------+----------+---------------------------+
| PARTITION_POLICY_ID | PARTITION_POLICY_NAME | PARTITION_ID | PARTITION_NAME | SUBPARTITION_NAME | PARTITION_ORDINAL_POSITION | SUBPARTITION_ORDINAL_POSITION | PARTITION_METHOD | SUBPARTITION_METHOD | PARTITION_EXPRESSION | SUBPARTITION_EXPRESSION | PARTITION_DESCRIPTION | HIDDEN | SE_PRIVATE_DATA |
+---------------------+-----------------------+--------------+----------------+-------------------+----------------------------+-------------------------------+------------------+---------------------+----------------------+-------------------------+-----------------------+----------+---------------------------+
| 1 | impl_pp_hash_4 | 1 | p0 | NULL | 1 | NULL | HASH | NULL | INTEGER | NULL | NULL | Implicit | distribution_policy_id=0; |
| 1 | impl_pp_hash_4 | 2 | p1 | NULL | 2 | NULL | HASH | NULL | INTEGER | NULL | NULL | Implicit | distribution_policy_id=0; |
| 1 | impl_pp_hash_4 | 3 | p2 | NULL | 3 | NULL | HASH | NULL | INTEGER | NULL | NULL | Implicit | distribution_policy_id=0; |
| 1 | impl_pp_hash_4 | 4 | p3 | NULL | 4 | NULL | HASH | NULL | INTEGER | NULL | NULL | Implicit | distribution_policy_id=0; |
+---------------------+-----------------------+--------------+----------------+-------------------+----------------------------+-------------------------------+------------------+---------------------+----------------------+-------------------------+-----------------------+----------+---------------------------+
4 rows in set (0.02 sec)

도움말 및 지원

문제 해결에 도움이 되었나요?

피드백