Re: Connecting to the database server - Mailing list pgsql-novice

From Andrej Ricnik-Bay
Subject Re: Connecting to the database server
Date
Msg-id b35603930801111304t4347907cxf11c921abd7f886a@mail.gmail.com
Whole thread Raw
In response to Re: Connecting to the database server  (LWATCDR <lwatcdr@gmail.com>)
Responses Re: Connecting to the database server  (LWATCDR <lwatcdr@gmail.com>)
List pgsql-novice
On 12/01/2008, LWATCDR <lwatcdr@gmail.com> wrote:
> Thanks I did move on to pg_hba.conf but no joy yet.
> I turned off ipchains since this box is inside our firewall and I am
> just testing for now.
> I added these lines to pg_hba.conf and restarted postgres
> host    all         all         192.168.100.0/24       ident sameuser
> host    phone       all         192.168.100.0/24       trust
>
>
>
> I now get a message saying that the server terminated this connection
> unexpectedly.
> Any ideas?
I'd start at the *simple* end.  Can you connect from the
command line with psql?  What other lines have you got
in pg_hba.conf?

Sameuser only makes sense if a) the user account name is
the same for both the os and postgres and b) ident is actually
set-up and running.  Also, if you're working on the same machine
the IP stack will be trying to either use Unix sockets or the
loopback interface before trying the IP address.


Cheers,
Andrej

pgsql-novice by date:

Previous
From: Isaac Vetter
Date:
Subject: Re: max_connections, solaris semaphores and initdb
Next
From: LWATCDR
Date:
Subject: Re: Connecting to the database server