GLOBAL_COMM_CLIENT_INFO
GLOBAL_COMM_CLIENT_INFO视图可用来查询整个集群全局节点活跃的客户端连接信息,默认只有系统管理员权限才可以访问此系统视图。
| 
       名称  | 
     
       类型  | 
     
       描述  | 
    
|---|---|---|
| 
       node_name  | 
     
       text  | 
     
       当前节点的名称  | 
    
| 
       app  | 
     
       text  | 
     
       连接当前DN的客户端,如coordinator(CN)、GTM、DN等。  | 
    
| 
       tid  | 
     
       bigint  | 
     
       当前线程的线程号  | 
    
| 
       lwtid  | 
     
       integer  | 
     
       当前线程的轻量级线程号  | 
    
| 
       query_id  | 
     
       bigint  | 
     
       查询ID,对应debug_query_id  | 
    
| 
       socket  | 
     
       integer  | 
     
       如果是物理连接,显示socket  | 
    
| 
       remote_ip  | 
     
       text  | 
     
       对端节点IP  | 
    
| 
       remote_port  | 
     
       text  | 
     
       对端节点port  | 
    
| 
       logic_id  | 
     
       integer  | 
     
       如果是逻辑连接,显示sid  |