GS_SPM_SQL_BASELINE
GS_SPM_SQL_BASELINE是SPM计划管理特性下的一个系统视图,当前该特性在分布式下不支持。该视图用于查看当前用户的baseline信息,普通用户以上权限均可以访问该视图。
|
名称 |
类型 |
描述 |
|---|---|---|
|
sql_namespace |
oid |
Schema的oid。 |
|
sql_hash |
bigint |
当前Schema中SQL的唯一标识。 |
|
plan_hash |
bigint |
当前SQL中的plan的唯一标识。 |
|
outline |
text |
outline文本,可固定当前计划的一组Hint。 |
|
status |
text |
计划的状态。取值范围:
|
|
gplan |
boolean |
当前outline对应的计划是否是gplan。 |
|
cost |
double precision |
计划的总代价。 |
|
sql_text |
text |
SQL的文本串。 |
|
param_num |
integer |
SQL的参数数量。 |
|
source |
text |
baseline的来源。 |
|
creation_time |
timestamp with time zone |
baseline的创建时间。 |
|
modification_time |
timestamp with time zone |
baseline的修改时间。 |
|
jump_intercept_cnt |
bigint |
当前baseline拦截计划跳变次数。 |
|
invalid |
boolean |
当前baseline是否无效。 |