アプリケーションから「could not connect to server: Connection refused」エラーが出る場合、まず確認すべきサーバ側の状態はどれか。

PostgreSQLプロセスが起動しているか