检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
openGauss=# EXPLAIN (NODES true) INSERT INTO student VALUES(5,'a'),(6,'b'); ERROR: unrecognized EXPLAIN option "nodes" openGauss=# EXPLAIN (NUM_NODES
customer_address; --修改explain_perf_mode为normal。 gaussdb=# SET explain_perf_mode=normal; --显示表简单查询的执行计划。 gaussdb=# EXPLAIN SELECT * FROM tpcds.customer_address_p1;
customer_address; --修改explain_perf_mode为normal。 gaussdb=# SET explain_perf_mode=normal; --显示表简单查询的执行计划。 gaussdb=# EXPLAIN SELECT * FROM tpcds.customer_address_p1;
PG_AVAILABLE_EXTENSIONS PG_AVAILABLE_EXTENSIONS视图显示数据库中某些特性的扩展信息。该视图为内部使用,不建议用户使用。 表1 PG_AVAILABLE_EXTENSIONS字段 名称 类型 描述 name name 扩展名。 default_version
MY_AUDIT_TRAIL MY_AUDIT_TRAIL视图显示与当前用户有关的标准审计跟踪条目,GaussDB审计信息主要通过gs_query_audit()函数。该视图同时存在于PG_CATALOG和SYS Schema下,仅拥有AUDITADMIN属性及MY_AUDIT_TRAIL的SE
event名称。 wait bigint 等待次数。 failed_wait bigint 失败的等待次数。 total_wait_time bigint 总等待时间(单位:微秒)。 avg_wait_time bigint 平均等待时间(单位:微秒)。 max_wait_time bigint
AI Watchdog ai_watchdog_monitor_status ai_watchdog_detection_warnings ai_watchdog_parameters ai_watchdog_ftask_status 父主题: DBE_PERF Schema
AI Watchdog ai_watchdog_monitor_status ai_watchdog_detection_warnings ai_watchdog_parameters 父主题: DBE_PERF Schema
AI Watchdog ai_watchdog_monitor_status ai_watchdog_detection_warnings ai_watchdog_parameters 父主题: DBE_PERF Schema
event名称。 wait bigint 等待次数。 failed_wait bigint 失败的等待次数。 total_wait_time bigint 总等待时间(单位:微秒)。 avg_wait_time bigint 平均等待时间(单位:微秒)。 max_wait_time bigint
ADM_AUDIT_TRAIL ADM_AUDIT_TRAIL显示所有标准审计跟踪条目,GaussDB审计信息主要通过gs_query_audit函数查询,该视图同时存在于PG_CATALOG和SYS schema下。仅拥有AUDITADMIN属性及ADM_AUDIT_TRAIL的SELEC
ADM_AUDIT_TRAIL ADM_AUDIT_TRAIL显示所有标准审计跟踪条目,GaussDB审计信息主要通过pg_query_audit函数,该视图同时存在于PG_CATALOG和SYS schema下。仅拥有AUDITADMIN属性的用户才可以查看审计信息。Gauss
GS_SESSION_MEMORY_DETAIL GS_SESSION_MEMORY_DETAIL显示会话的内存使用情况,以MemoryContext节点来统计。当开启线程池(enable_thread_pool = on)时,该视图包含所有线程和会话的内存使用情况。当GUC参数
MY_AUDIT_TRAIL MY_AUDIT_TRAIL视图显示与当前用户有关的标准审计跟踪条目,GaussDB审计信息主要通过gs_query_audit()函数。该视图同时存在于PG_CATALOG和SYS Schema下,仅拥有AUDITADMIN属性及MY_AUDIT_TRAIL的SE
GS_SESSION_MEMORY_DETAIL GS_SESSION_MEMORY_DETAIL显示会话的内存使用情况,以MemoryContext节点来统计。当开启线程池(enable_thread_pool = on)时,该视图包含所有线程和会话的内存使用情况。当GUC参数
AI Watchdog ai_watchdog_monitor_status ai_watchdog_detection_warnings ai_watchdog_parameters ai_watchdog_ftask_status 父主题: DBE_PERF Schema
customer_address; --修改explain_perf_mode为normal。 openGauss=# SET explain_perf_mode=normal; --显示表简单查询的执行计划。 openGauss=# EXPLAIN SELECT * FROM tpcds
customer_address; --修改explain_perf_mode为normal gaussdb=# SET explain_perf_mode=normal; --显示表简单查询的执行计划。 gaussdb=# EXPLAIN SELECT * FROM tpcds.customer_address_p1;
customer_address; --修改explain_perf_mode为normal。 gaussdb=# SET explain_perf_mode=normal; --显示表简单查询的执行计划。 gaussdb=# EXPLAIN SELECT * FROM tpcds.customer_address_p1;
EXPLAIN PLAN 功能描述 通过EXPLAIN PLAN命令可以将查询执行的计划信息存储于PLAN_TABLE表中。与EXPLAIN命令不同的是,EXPLAIN PLAN仅将计划信息进行存储,而不会打印到屏幕。 语法格式 EXPLAIN PLAN [ SET STATEMENT_ID