云数据库 GAUSSDB-实现内部功能的函数:gs_libcomm_fd_info()
gs_libcomm_fd_info()
描述:查询libcomm通信库socket长连接信息。集中式中不支持使用。
参数:nan
返回值:如表5所示。
名称 |
类型 |
描述 |
---|---|---|
node_name |
OUT text |
DN实例名。 |
ip |
OUT text |
DN的IP。 |
ctrl_port |
OUT bigint |
控制通道端口。 |
data_port |
OUT bigint |
数据通道端口。 |
remote_name |
OUT text |
对端DN示例名。 |
remote_ip |
OUT text |
对端IP。 |
remote_port |
OUT bigint |
对端端口号。 |
local_ip |
OUT text |
本地IP。 |
local_port |
OUT bigint |
本地端口号。 |
fd |
OUT bigint |
socket连接。 |
type |
OUT text |
TCP连接通道类型,包括:
|

该函数只能在DN上使用。若函数返回空,表示当前DN实例未建立libcomm长连接。