PG_POOLER_STATUS
PG_POOLER_STATUS视图查询pooler中的缓存连接状态。该视图只能在CN上查询,显示本地CN的pooler模块的连接缓存信息。
| 名称 | 类型 | 描述 |
|---|---|---|
| database | text | 数据库名称。 |
| user_name | text | 用户名。 |
| tid | bigint |
|
| node_oid | bigint | 连接的实例节点OID。 |
| node_name | name | 连接的实例节点名称。 |
| in_use | boolean | 连接是否正被使用。
|
| local_host | text | 本端IP。 |
| local_port | bigint | 本端端口号。 |
| remote_host | text | 连接的实例节点IP。 |
| node_port | bigint | 连接的实例节点端口号。 |
| fdsock | bigint | 对端socket。 |
| remote_pid | bigint | 对端处于非线程池逻辑下为对端的线程id,对端处于线程池逻辑下为对端的sessionid。 |
| session_params | text | 由此连接下发的GUC session参数。 |
| used_count | bigint | 该连接的复用次数。 |
| idx | bigint | 连接的实例节点逻辑连接id。 |
| streamid | bigint | 每个逻辑连接对应的流标识id。 |