ここでは例を示します。
$ pcp_proc_info -h localhost -p 9898 -U postgres 3815
postgres_db postgres 1150769932 1150767351 3 0 1 1467 1
postgres_db postgres 1150769932 1150767351 3 0 1 1468 1
結果は以下の順のとおりです。
1. connected database name 2. connected user name 3. process start-up timestamp 4. connection created timestamp 5. protocol major version 6. protocol minor version 7. connection-reuse counter 8. PostgreSQL backend process id 9. 1 if frontend conncted 0 if not
コネクションがバックエンドに対して張られていない場合、データは表示されません。 コネクション情報が複数ある場合、複数行に 1 行 1 コネクション情報で表示されます。 時刻は EPOCH タイムからの秒数で表わされます。
--verbose オプションは出力内容を理解するのに役に立ちます。例:
$ pcp_proc_info --verbose -U postgres 3815
Database : postgres_db
Username : postgres
Start time : 1150769932
Creation time: 1150767351
Major : 3
Minor : 0
Counter : 1
PID : 1467
Connected : 1
Database : postgres_db
Username : postgres
Start time : 1150769932
Creation time: 1150767351
Major : 3
Minor : 0
Counter : 1
PID : 1468
Connected : 1