GaussDB-GS_MY_PLAN_TRACE

42 阅读1分钟

GaussDB-GS_MY_PLAN_TRACE

GS_MY_PLAN_TRACE is a view of the GS_PLAN_TRACE system catalog. This view displays the plan traces of the current user. The plan trace feature is not supported in the distributed scenario. Therefore, no data is displayed in this view in the distributed scenario.

NameTypeDescription
query_idtextUnique ID of the current request.
querytextSQL statement of the current request. The value of this column cannot exceed the value of track_activity_query_size.
unique_sql_idbigintUnique ID of the SQL statement of the current request.
plantextQuery plan text corresponding to the SQL statement of the current request. The size of this field cannot exceed 10 KB.
plan_tracetextDetails about the query plan generation process corresponding to the SQL statement of the current request. The value of this field cannot exceed 300 MB.
modifydatetimestamp with time zoneTime when the current plan trace is updated (that is, time when the plan trace is created).

更多详情请参考GaussDB 文档中心:doc.hcs.huawei.com/db/zh-cn/ga…