GaussDB-ADM_HIST_SQL_PLAN
ADM_HIST_SQL_PLAN视图描述当前用户通过执行EXPLAIN PLAN收集到的计划信息。默认只有系统管理员权限才可以访问,普通用户需要授权才可以访问。该视图同时存在PG_CATALOG和SYS Schema下。
| 名称 | 类型 | 描述 |
|---|---|---|
| dbid | text | 数据库ID。 |
| sql_id | character varying(30) | 表示插入该条数据的会话,由服务线程启动时间戳和服务线程ID组成。受非空约束限制。 |
| plan_hash_value | bigint | 查询标识。 |
| id | integer | 分配给执行计划中的每个步骤编号。 |
| operation | character varying(30) | 操作描述。 |
| options | character varying(255) | 操作选项。 |
| object_node | character varying(128) | 暂不支持,值为NULL。 |
| object# | numeric | 暂不支持,值为NULL。 |
| object_owner | name | 表或索引的对象编号。 |
| object_name | name | 操作对应的对象名,来自于用户定义。 |
| object_alias | character varying(261) | 暂不支持,值为NULL。 |
| object_type | character varying(30) | 对象类型。 |
| optimizer | character varying(20) | 暂不支持,值为NULL。 |
| parent_id | numeric | 暂不支持,值为NULL。 |
| depth | numeric | 暂不支持,值为NULL。 |
| position | numeric | 暂不支持,值为NULL。 |
| search_columns | numeric | 暂不支持,值为NULL。 |
| cost | double precision | 优化器对算子估算的执行代价。 |
| cardinality | double precision | 优化器对算子估算访问表记录基数大小。 |
| bytes | numeric | 暂不支持,值为NULL。 |
| other_tag | character varying(35) | 暂不支持,值为NULL。 |
| partition_start | character varying(64) | 暂不支持,值为NULL。 |
| partition_stop | character varying(64) | 暂不支持,值为NULL。 |
| partition_id | numeric | 暂不支持,值为NULL。 |
| other | character varying(4000) | 暂不支持,值为NULL。 |
| distribution | character varying(20) | 暂不支持,值为NULL。 |
| cpu_cost | numeric | 暂不支持,值为NULL。 |
| io_cost | numeric | 暂不支持,值为NULL。 |
| temp_space | numeric | 暂不支持,值为NULL。 |
| access_predicates | character varying(4000) | 暂不支持,值为NULL。 |
| filter_predicates | character varying(4000) | 暂不支持,值为NULL。 |
| projection | character varying(4000) | 操作输出的列信息。 |
| time | numeric | 暂不支持,值为NULL。 |
| qblock_name | character varying(128) | 暂不支持,值为NULL。 |
| remarks | character varying(4000) | 暂不支持,值为NULL。 |
| timestamp | date | 暂不支持,值为NULL。 |
| other_xml | clob | 暂不支持,值为NULL。 |
| con_dbid | text | 容器数据库ID,目前与dbid取值相同。 |
| con_id | numeric | 容器ID,目前不支持容器,值为为0。 |
更多详情请参考GaussDB 文档中心:doc.hcs.huawei.com/db/zh-cn/ga…