tencent cloud

TDSQL Boundless

TDSTORE_PESSIMISTIC_DEADLOCK_INFO

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

Function

By querying the system table INFORMATION_SCHEMA.TDSTORE_PESSIMISTIC_DEADLOCK_INFO on the node performing deadlock detection, you can obtain the occurrence time of all historical deadlocks, the ID of the rolled-back transaction, the IDs of transactions forming a deadlock ring, and the Node ID of the SQLEngine executing each transaction.

Field Description

Field Name
Type
Description
rollback_trans_id
bigint unsigned
The ID of the rolled-back transaction.
cycle_transactions
longtext
The IDs of transactions forming a deadlock ring and the Node ID of the SQLEngine executing each transaction.
timestamp
varchar(64)
The occurrence time of deadlocks.

Examples

tdsql> SELECT * FROM information_schema.tdstore_pessimistic_deadlock_info;
+----------------------+--------------------------------------------------------+-------------------------+
| rolled_back_trans_id | cycle_transactions | timestamp |
+----------------------+--------------------------------------------------------+-------------------------+
| 29342246289539082 | 29342246289539082 (node 1), 29342246423756948 (node 1) | 2025-06-03 15:03:05 501 |
+----------------------+--------------------------------------------------------+-------------------------+

도움말 및 지원

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

피드백