Re: jdbc pg_hba.conf error

From: "Bhavana(dot)Rakesh" <Bhavana(dot)Rakesh(at)noaa(dot)gov>
To: Oliver Elphick <olly(at)lfix(dot)co(dot)uk>, pgsql_general <pgsql-general(at)postgresql(dot)org>, jdbc <pgsql-odbc-owner(at)postgresql(dot)org>
Subject: Re: jdbc pg_hba.conf error
Date: 2007-05-30 16:11:31
Message-ID: 465DA233.4030607@noaa.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.
>
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bhavana.Rakesh 2007-05-30 16:30:38 Re: jdbc pg_hba.conf error
Previous Message John D. Burger 2007-05-30 16:01:00 Re: Geographic data sources, queries and questions