Re: [INTERFACES] Re: connecting: unix socket? Yes. TCPIP port? No. -i? Yes. - Mailing list pgsql-general

From Peter T Mount
Subject Re: [INTERFACES] Re: connecting: unix socket? Yes. TCPIP port? No. -i? Yes.
Date
Msg-id Pine.LNX.4.04.9902080648060.19320-100000@maidast.retep.org.uk
Whole thread Raw
In response to Re: connecting: unix socket? Yes. TCPIP port? No. -i? Yes.  (Bob VonMoss <bvonmoss@bigfoot.com>)
List pgsql-general
On Sun, 7 Feb 1999, Bob VonMoss wrote:

> Tom Lane wrote:
>
> > Bob VonMoss <bvonmoss@bigfoot.com> writes:
> > > [ can connect via unix socket, but not via TCP ]
> >
> > > The administrator says this is how postmaster is invoked:
> > > /usr/local/pgsql/bin/postmaster -S -i -D /usr/local/pgsql/data -p 5432
> >
> > OK, that eliminates the "forgot -i" gotcha.
> >
> > James Thompson is almost certainly right that the problem is that
> > Postgres' pg_hba.conf file is not set up to allow connections from
> > whichever IP address you are connecting from.
> >
> > We heard about a similar problem recently which turned out to be
> > due to use of "virtual server" IP addresses.
>
> The pgsql administrator put a line in pg_hba.conf that looks like this,
> where my_db is substituted for my database name:
>
> host my_db 0.0.0.0 0.0.0.0 ident sameuser
>
> I'm still getting the same 'User authentication failed' messages. Same thing
> from JDBC. Do I need access to the 'template1' table also?

no.

Is the machine you are running the java app or psql on running ident?

> Here's a transcript of a session from the command

--
       Peter T Mount peter@retep.org.uk
      Main Homepage: http://www.retep.org.uk
PostgreSQL JDBC Faq: http://www.retep.org.uk/postgres
 Java PDF Generator: http://www.retep.org.uk/pdf


pgsql-general by date:

Previous
From: Bob VonMoss
Date:
Subject: Re: connecting: unix socket? Yes. TCPIP port? No. -i? Yes.
Next
From: Karl Eichwalder
Date:
Subject: Re: Client Installation