Received: from pltn13.pbi.net (mta7.pltn13.pbi.net [64.164.98.8]) by postgresql.org (8.11.3/8.11.4) with ESMTP id f8U3NbO49425 for ; Sat, 29 Sep 2001 23:23:37 -0400 (EDT) (envelope-from Russ@psyex.com) Received: from [64.170.120.144] ([64.164.9.134]) by mta7.pltn13.pbi.net (iPlanet Messaging Server 5.1 (built May 7 2001)) with ESMTP id <0GKG007PCHF89J@mta7.pltn13.pbi.net> for pgsql-admin@postgresql.org; Sat, 29 Sep 2001 20:23:32 -0700 (PDT) Date: Sat, 29 Sep 2001 20:29:47 -0700 From: Russ McBride Subject: Re: authentication problems In-reply-to: <358.1001818864@sss.pgh.pa.us> X-Sender: rmcbride@pop.sfrn.dnai.com To: Tom Lane Cc: nickf@ontko.com, pgsql-admin@postgresql.org Message-id: MIME-version: 1.0 Content-type: text/plain; charset=us-ascii; format=flowed Content-transfer-encoding: 7BIT References: <358.1001818864@sss.pgh.pa.us> X-Archive-Number: 200109/142 X-Sequence-Number: 2243 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 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