[pgsql-jp: 28429] Re: pg_connect () とFALSE

MAMORU Yoshimura mamoru @ iea.att.ne.jp
2002年 12月 24日 (火) 03:50:35 JST


吉村@神戸です。

>1) エラーの内容は、@pg_connectの"@"を取ることで、下記の内容が
>見れるようになりました。
>Warning: Unable to connect to PostgreSQL server: PQconnectPoll()
>-- connect() failed: Connection refused Is the postmaster running (with
>-i) at 'localhost' and accepting connections on TCP/IP port 5432?
>この意味がまたよく解りません。postmasterが動いていてなぜいけないのか? 
>んーー。

postmasterが起動しているのであれば、pg_hba.confの設定が怪しいのではと思いま
す。

例えば

local   all         trust
host    all 127.0.0.1   255.255.255.255 trust

といった記述がないと、unixドメインソケットでも接続できません。

----------------------------------------------------------------------
吉村 守
MAMORU Yoshimura
E-Mail:mamoru @ iea.att.ne.jp
----------------------------------------------------------------------



pgsql-jp メーリングリストの案内