Re: jdbc pg_hba.conf error - Mailing list pgsql-general

From Bhavana.Rakesh
Subject Re: jdbc pg_hba.conf error
Date
Msg-id 465DA233.4030607@noaa.gov
Whole thread Raw
In response to jdbc pg_hba.conf error  ("Bhavana.Rakesh" <Bhavana.Rakesh@noaa.gov>)
List pgsql-general
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.
 

pgsql-general by date:

Previous
From: Aurynn Shaw
Date:
Subject: Re: On-line / off-line trace of SQL statements presented to the Postgres SQL engine
Next
From: "Bhavana.Rakesh"
Date:
Subject: Re: jdbc pg_hba.conf error