更新时间:2025-07-10 GMT+08:00
PG_BULKLOAD_STATISTICS
在集群任一正常节点上,通过查询PG_BULKLOAD_STATISTICS视图可以获取当前登录节点正在进行的导入导出业务执行情况,其中每一个导入/导出业务对应一条记录。需要有系统管理员权限才可以访问此视图。
名称 | 类型 | 描述 |
|---|---|---|
node_name | text | 节点名称。 |
db_name | text | 数据库名称。 |
query_id | bigint | 查询ID,对应debug_query_id。 |
tid | bigint | 当前线程的线程号。 |
lwtid | integer | 当前线程的轻量级线程号。 |
session_id | bigint | GDS的会话ID。 |
direction | text | 业务类型,取值包括:gds to file、gds from file、gds to pipe、gds from pipe、copy from、copy to。 |
query | text | 查询语句。 |
address | text | 当前导入导出外表的location。 |
query_start | timestamp with time zone | 导入/导出开始时间。 |
total_bytes | bigint | 待处理数据的总大小。 仅GDS普通文件导入时,且该行记录来自CN节点才会显示,否则为空。 |
phase | text | 当前业务导入导出执行阶段,包括:INITIALIZING、TRANSFER_DATA、RELEASE_RESOURCE。 |
done_lines | bigint | 已传输行数。 |
done_bytes | bigint | 已传输字节数。 |

