PostgreSQLサービスのステータスを調べる

コマンド:
% sudo su postgres -c 'pg_ctl status -D /opt/local/var/db/postgresql84/defaultdb’
結果表示:
pg_ctl: server is running (PID: 54248)
/opt/local/lib/postgresql84/bin/postgres “-D" “/opt/local/var/db/postgresql84/defaultdb"

Source

Posted by arkgame