GS_SPM_SQL_EVOLUTION
GS_SPM_SQL_EVOLUTION是SPM计划管理特性下的系统视图,当前该特性在分布式下不支持。该视图用于查看当前用户的计划演进结果信息,普通用户以上权限均可以访问该视图。
| 名称 | 类型 | 描述 |
|---|---|---|
| sql_namespace | oid | Schema的oid。 |
| sql_hash | bigint | 当前Schema中SQL的唯一标识。 |
| plan_hash | bigint | 当前SQL中的plan的唯一标识。 |
| better | boolean | 是否是正向收益演进。 |
| status | text | 演进过程中是否出现异常。取值范围:
|
| refer_plan | bigint | 报告生成的主要参考的plan hash。 |
| sql_text | text | SQL的文本串。 |
| outline | text | 当前计划的Hint字符串列表。 |
| reason | text | 演进报告的内容。 |
| gplan | boolean | 是否是gplan。 |
| creation_time | timestamp with time zone | 创建演进结果的时间。 |