pcp_node_info returns record(integer node_id, text host, integer port, text username, text password, out status text, out weight float4, out role text, out replication_delay bigint, out replication_state text, out replication_sync_state text, out last_status_change timestamp);
pcp_node_info returns record(integer node_id, text pcp_server, out status text, out weight float4, out role text, out replication_delay bigint, out replication_state text, out replication_sync_state text, out last_status_change timestamp);
使用例です。
    test=# SELECT * FROM pcp_node_info(1,'',11001,'t-ishii','t-ishii');
    host | port  |      status       | weight |  role   | replication_delay | replication_state | replication_sync_state | last_status_change  
    ------+-------+-------------------+--------+---------+-------------------+-------------------+------------------------+---------------------
    /tmp | 11003 | Connection in use |      0 | Standby |                 0 | streaming         | async                  | 2019-04-23 15:02:46
    (1 row)
   
注意: role, replication_delay, last_status_change出力パラメータはPgpool-II 4.0で追加されました。 すでに4.0以前のpgpool_adm拡張をインストールしている場合は、ALTER EXTENSION SQLコマンドを使って更新が可能です。
ALTER EXTENSION pgpool_adm UPDATE;
注意: role, replication_delay, last_status_change出力パラメータはPgpool-II 4.1で追加されました。 すでに4.0以前のpgpool_adm拡張をインストールしている場合は、ALTER EXTENSION SQLコマンドを使って更新が可能です。
ALTER EXTENSION pgpool_adm UPDATE;