From: Russ McBride <Russ@psyex.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: nickf@ontko.com
Cc: pgsql-admin@postgresql.org
Subject: Re: authentication problems
Date: Sat, 29 Sep 2001 20:29:47 -0700
Message-ID: <v04210102b7dc3f72b303@[64.170.120.144]> (raw)
In-Reply-To: <358.1001818864@sss.pgh.pa.us>
References: <NEBBLAAHGLEEPCGOBHDGCEKBDLAA.nickf@ontko.com>
<v04210103b7dc258398f3@[64.170.120.108]>
<358.1001818864@sss.pgh.pa.us>
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@psyex.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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: Russ@psyex.com, tgl@sss.pgh.pa.us, nickf@ontko.com
Subject: Re: authentication problems
In-Reply-To: <v04210102b7dc3f72b303@[64.170.120.144]>
References: <NEBBLAAHGLEEPCGOBHDGCEKBDLAA.nickf@ontko.com> <v04210103b7dc258398f3@[64.170.120.108]> <358.1001818864@sss.pgh.pa.us> <v04210102b7dc3f72b303@[64.170.120.144]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox