平野といいます。 # Connection refused Is the server running on host "localhost" and # accepting TCP/IP connections on port 5432? は、libpq/fe-connect.cの # メッセージだから、PHP言語ということではないと思うけど。 pg_ctl startするときに、-o -i をつけてないとか、pg_hba.confで制限が かかってるとか・・・。