I used the example in the following URL
http://www.postgresql.org/docs/7.3/static/client-authentication.html Thanks for the catch on "host" instead of "local". I made that change, and reloaded pgsql.. But I still get the same error. I can connect to the database using psql client, but my java connection seems to be failing.
Oliver Elphick wrote:
On Wed, 2007-05-30 at 11:47 -0400, Bhavana.Rakesh wrote:
Hello,
I'm still getting the error
...
Here is my updated version of pg_hba.conf file
__________________________________________________________________________
#
# TYPE DATABASE USER IP-ADDRESS IP-MASK METHOD
host all all trust
That line is missing the IP-address and IP-mask parameters. It looks as
if the first word should be "local" rather than "host", in which case it
would be valid.
Using this pg_hba.conf ought to give you the message:FATAL: missing or erroneous pg_hba.conf file
if you try to connect from psql. I don't know if the Java stuff somehow
manages to bypass it or if you haven't done a kill -SIGHUP of the
postmaster to reload the configuration.