GS_SPM_PLAN_HISTORY_DETAIL
GS_SPM_PLAN_HISTORY_DETAIL是用于查看数据库中跳变历史信息的视图,SYSADMIN和初始用户权限均可以访问该视图。
| 名称 | 类型 | 描述 |
|---|---|---|
| sql_hash | bigint | SPM中SQL的唯一标识。 |
| plan_hash | bigint | 当前SQL中的plan的唯一标识。 |
| plan_hash_previous | bigint | 上一次使用plan的唯一标识,若不存在上一次计划则为0。 |
| unique_sql_id | bigint | 数据库中SQL的唯一标识。 |
| outline | text | outline文本,可固定当前计划的一组Hint。 |
| status | text | 计划的状态,取值:
|
| gplan | boolean | 当前outline对应的计划是否是gplan。 |
| cost | double precision | 计划的总代价。 |
| sql_text | text | SQL的文本串。 |
| param_num | integer | SQL的参数数量。 |
| source | text | baseline的来源。 |
| userid | oid | 用户的oid。 |
| baseline_creation_time | timestamp with time zone | baseline的创建时间。 |
| history_creation_time | timestamp with time zone | 跳变历史的创建时间。 |
| modification_time | timestamp with time zone | baseline的修改时间。 |