pg_tty

pg_tty -- tty 名を返す

説明

string pg_tty(int connection_id);

pg_tty() は、与えられた PostgreSQL 接続 ID 上で、サーバ側の デバッグ出力が送られる tty 名を返します。