Re: authentication problems

From: Russ McBride <Russ(at)psyex(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: nickf(at)ontko(dot)com, pgsql-admin(at)postgresql(dot)org
Subject: Re: authentication problems
Date: 2001-09-30 03:29:47
Message-ID: v04210102b7dc3f72b303@[64.170.120.144]
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

I typed "/usr/local/pgsql/bin/psql -h localhost" and
"/usr/local/pgsql/bin/psql -h 127.0.0.1" and they both returned the
same (odd) message:

psql: FATAL 1: database "postgres" does not exist in the system catalog

I'm connecting through JDBC using 7.1.3 on Darwin (Mac) OS 10.1.

Stefan Huber suggested that I tell JDBC to connect through the
"lo-network" device so that the 127.0.0.1 line in pg_hba.conf works.

thanks for thinking about this problem,

Russ

>Russ McBride <Russ(at)psyex(dot)com> writes:
> > Thanks for the troubleshooting idea Nick. I can ping localhost which
> > does show up as 127.0.0.1. The error message I get is:
> > No entry in pg_hba.conf_file for 169.245.10.10 [or whatever ip
> > address I happen to be using at the time] for user: postgres
> > database: testdb
>
>Hmph. How are you connecting exactly? Do "psql -h localhost" and
>"psql -h 127.0.0.1" produce different results? What do you have in
>/etc/hosts and /etc/resolv.conf?
>
> regards, tom lane

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2001-09-30 03:55:51 Re: authentication problems
Previous Message Tom Lane 2001-09-30 03:28:39 Re: authentication problems