connecting to a remote pq always require a password - Mailing list pgsql-general

From David Shen
Subject connecting to a remote pq always require a password
Date
Msg-id 53e35fd50906180511g2953a478y5e551da643609282@mail.gmail.com
Whole thread Raw
Responses Re: connecting to a remote pq always require a password
List pgsql-general
Hi,

I am trying to use the libpq to connect to my postgresql 8.3 server.
If I use "dbname = mydb", the connection made successfully because I
am using a socket connection. But if I use "host = 127.0.0.1 dbname =
mydb", the error message is "no password supplied".

In the pg_hba.conf file, I even change the host access control to this:
host    all         all         127.0.0.1/32          trust

but it still does not work. What I missed?


--
Best Regards,
David Shen

pgsql-general by date:

Previous
From: Bill Moran
Date:
Subject: Re: Too many postgres instances
Next
From: John DeSoi
Date:
Subject: Re: connecting to a remote pq always require a password