tencent cloud

TDSQL Boundless

LOGSERVICE_DD_PARTITIONS

PDF
Focus Mode
Font Size
Last updated: 2026-02-10 11:03:02

Function

Stores the mapping of the tindex_id for each partition to the primary table's tindex_id. For partitioned tables, when Raft logs are parsed, the corresponding primary table's tindex_id can be located via the partition's tindex_id, thereby obtaining the table schema required for Raft log parsing by querying the sys.logservice_dd_tables table.

Field Description

Field Name
Type
Description
sid
bigint unsigned
Stores the identifier for logservice.
tindex_id
int unsigned
The ID for each partition.
parent_tindex_id
int unsigned
The tindex id of the primary table corresponding to the current partition.

Examples

tdsql> DESC sys.logservice_dd_partitions;
+------------------+-----------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+------------------+-----------------+------+-----+---------+-------+
| sid | bigint unsigned | NO | PRI | NULL | |
| tindex_id | int unsigned | NO | PRI | NULL | |
| parent_tindex_id | int unsigned | NO | | NULL | |
+------------------+-----------------+------+-----+---------+-------+

tdsql> SELECT * FROM sys.logservice_dd_partitions;
+-------------------+-----------+------------------+
| sid | tindex_id | parent_tindex_id |
+-------------------+-----------+------------------+
| 29475711576178806 | 10035 | 10034 |
| 29475711576178806 | 10036 | 10034 |
| 29475711576178806 | 10037 | 10034 |
| 29475711576178806 | 10038 | 10034 |
+-------------------+-----------+------------------+

Help and Support

Was this page helpful?

Help us improve! Rate your documentation experience in 5 mins.

Feedback