返回首页

gbase数据、南大通用产品文档:GBase8c

更新日期:2024年09月11日

GLOBAL_STATEMENT_COMPLEX_HISTORY
显示各个节点执行作业结束后的负载管理记录。
名称
类型
描述
datid
oid
连接后端的数据库OID。
dbname
text
连接后端的数据库名称。
schemaname
text
模式的名称。
nodename
text
数据库进程名称。
username
text
连接到后端的用户名。
application_name
text
连接到后端的应用名。
client_addr
inet
连接到后端的客户端的IP 地址。如果此字段
是null,
它表明通过服务器机器上UNIX 套接
字连接客户端或者这是内部进程,如autovac
uum。
client_hostname
text
客户端的主机名,
这个字段是通过client_addr
的反向DNS 查找得到。这个字段只有在启动

GBase 8c V5 开发者手册
南大通用数据技术股份有限公司
1024
名称
类型
描述
log_hostname 且使用IP 连接时才非空。
client_port
integer
客户端用于与后端通讯的TCP 端口号,如果
使用Unix 套接字,则为-1。
query_band
text
用于标示作业类型,可通过GUC 参数query_
band 进行设置,默认为空字符串。
block_time
bigint
语句执行前的阻塞时间,
包含语句解析和优化
时间,单位ms。
start_time
timestamp with
time zone
语句执行的开始时间。
finish_time
timestamp with
time zone
语句执行的结束时间。
duration
bigint
语句实际执行的时间,单位ms。
estimate_total_time
bigint
语句预估执行时间,单位ms。
status
text
语句执行结束状态:正常为finished,异常为
aborted。
abort_info
text
语句执行结束状态为aborted 时显示异常信
息。
resource_pool
text
用户使用的资源池。
control_group
text
语句所使用的Cgroup。
estimate_memory
integer
语句预估使用内存。
min_peak_memory
integer
语句在数据库节点上的最小内存峰值,
单位M
B。
max_peak_memory
integer
语句在数据库节点上的最大内存峰值,
单位M
B。
average_peak_memory
integer
语句执行过程中的内存使用平均值,单位M
B。

GBase 8c V5 开发者手册
南大通用数据技术股份有限公司
1025
名称
类型
描述
memory_skew_percent
integer
语句数据库节点间的内存使用倾斜率。
spill_info
text
语句在数据库节点上的下盘信息:
None:数据库节点均未下盘。
All:数据库节点均下盘。
[a:b]:
数量为b 个数据库节点中有a 个数据库
节点下盘。
min_spill_size
integer
若发生下盘,数据库节点上下盘的最小数据
量,单位MB,默认为0。
max_spill_size
integer
若发生下盘,数据库节点上下盘的最大数据
量,单位MB,默认为0。
average_spill_size
integer
若发生下盘,数据库节点上下盘的平均数据
量,单位MB,默认为0。
spill_skew_percent
integer
若发生下盘,数据库节点间下盘倾斜率。
min_dn_time
bigint
语句在数据库节点上的最小执行时间,
单位m
s。
max_dn_time
bigint
语句在数据库节点上的最大执行时间,
单位m
s。
average_dn_time
bigint
语句在数据库节点上的平均执行时间,
单位m
s。
dntime_skew_percent
integer
语句在数据库节点的执行时间倾斜率。
min_cpu_time
bigint
语句在数据库节点上的最小CPU 时间,单位
ms。
max_cpu_time
bigint
语句在数据库节点上的最大CPU 时间,单位
ms。
total_cpu_time
bigint
语句在数据库节点上的CPU 总时间,
单位ms。
cpu_skew_percent
integer
语句在数据库节点间的CPU 时间倾斜率。
min_peak_iops
integer
语句在数据库节点上的每秒最小IO 峰值(列
存单位是次/s,行存单位是万次/s)。

GBase 8c V5 开发者手册
南大通用数据技术股份有限公司
1026
名称
类型
描述
max_peak_iops
integer
语句在数据库节点上的每秒最大IO 峰值(列
存单位是次/s,行存单位是万次/s)。
average_peak_iops
integer
语句在数据库节点上的每秒平均IO 峰值(列
存单位是次/s,行存单位是万次/s)。
iops_skew_percent
integer
语句在数据库节点间的IO 倾斜率。
warning
text
主要显示如下几类告警信息:
Spill file size large than 256MB。
Broadcast size large than 100MB。
Early spill。
Spill times is greater than 3。
Spill on memory adaptive。
Hash table conflict。
queryid
bigint
语句执行使用的内部query id。
query
text
执行的语句。
query_plan
text
语句的执行计划。
node_group
text
语句所属用户对应的逻辑GBase 8c。
cpu_top1_node_name
text
cpu 使用率第1 的节点名称。
cpu_top2_node_name
text
cpu 使用率第2 的节点名称。
cpu_top3_node_name
text
cpu 使用率第3 的节点名称。
cpu_top4_node_name
text
cpu 使用率第4 的节点名称。
cpu_top5_node_name
text
cpu 使用率第5 的节点名称。
mem_top1_node_name
text
内存使用量第1 的节点名称。
mem_top2_node_name
text
内存使用量第2 的节点名称。
mem_top3_node_name
text
内存使用量第3 的节点名称。
mem_top4_node_name
text
内存使用量第4 的节点名称。
mem_top5_node_name
text
内存使用量第5 的节点名称。

GBase 8c V5 开发者手册
南大通用数据技术股份有限公司
1027
名称
类型
描述
cpu_top1_value
bigint
cpu 使用率。
cpu_top2_value
bigint
cpu 使用率。
cpu_top3_value
bigint
cpu 使用率。
cpu_top4_value
bigint
cpu 使用率。
cpu_top5_value
bigint
cpu 使用率。
mem_top1_value
bigint
内存使用量。
mem_top2_value
bigint
内存使用量。
mem_top3_value
bigint
内存使用量。
mem_top4_value
bigint
内存使用量。
mem_top5_value
bigint
内存使用量。
top_mem_dn
text
内存使用量topN 信息。
top_cpu_dn
text
cpu 使用量topN 信息。

功能说明
用户权限表,给出了关于全局权限的信息。
表结构说明
表5- 241 表结构信息说明:





GBase 8a MPP Cluster 产品手册
5 数据库管理指南
文档版本953(2022-09-15)
南大通用数据技术股份有限公司
1477
GRANTEE
权限所有者
TABLE_CATALOG
登记目录名,NULL
PRIVILEGE_TYPE
权限类型
IS_GRANTABLE
是否具有赋予权限的权限

 摘要:
初始化逐行的结果集检索。如果成功,gbase_use_result()将复位
gbase_error()和gbase_errno()。



GBase 8a 程序员手册C API 篇
南大通用数据技术股份有限公司

- 49 -
 语法:
GBASE_RES * gbase_use_result(GBASE *gbase);
 参数:
 返回值:
GBASE_RES 结果结构。如果出现错误,返回NULL。
 错误
CR_COMMANDS_OUT_OF_SYNC
以不恰当的顺序执行了命令。
CR_OUT_OF_MEMORY


内存溢出。
CR_SERVER_GONE_ERROR

GBase 服务器不可用。
CR_SERVER_LOST


在查询过程中,与服务器的连接丢失。
CR_UNKNOWN_ERROR


出现未知错误。