TDSQL Boundless LOGSERVICE_DD_PARTITIONS

存储每个分区的 tindex_id 到主表 tindex_id 的映射。对于分区表,在解析 Raft log 时可以通过分区的 tindex_id 找到对应主表的 tindex_id,进而通过查询 sys.logservice_dd_tables 表获得解析 Raft log 所需的表结构。

相关产品
TDSQL Boundless 产品页,含版本规格、价格与购买入口。

一、支持版本

适用于 TDSQL Boundless V21.2.0 及以上版本。

二、字段说明

字段名 类型 描述
sid bigint unsigned 用于标识 logservice 的编号。
tindex_id int unsigned 标识每个分区的 ID。
parent_tindex_id int unsigned 当前分区对应主表的 tindex id。

三、示例

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 |+——————-+———–+——————+

赞 (0)
上一篇 4天前
下一篇 4天前