pg_Port

pg_Port -- ポート番号を返す

説明

int pg_port(int connection_id);

pg_Port() は、与えられた PostgreSQL 接続 ID が接続しているポ ート番号を返します。