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 f8U3oQO53307 for ; Sat, 29 Sep 2001 23:50:26 -0400 (EDT) (envelope-from Russ@psyex.com) Received: from [64.170.120.144] ([64.164.9.237]) by mta7.pltn13.pbi.net (iPlanet Messaging Server 5.1 (built May 7 2001)) with ESMTP id <0GKG00J7OINRLA@mta7.pltn13.pbi.net> for pgsql-admin@postgresql.org; Sat, 29 Sep 2001 20:50:16 -0700 (PDT) Date: Sat, 29 Sep 2001 20:56:29 -0700 From: Russ McBride Subject: Re: authentication problems In-reply-to: <530.1001820519@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> <530.1001820519@sss.pgh.pa.us> X-Archive-Number: 200109/144 X-Sequence-Number: 2245 Typing "/usr/local/pgsql/bin/psql -h localhost testdb" starts up my database in psql quite nicely, which seems to indicate to me that the pg_hba.conf is being read and the line: local all trust is working as expected (I assume that this is the line that allows all local UNIX socket connections). Hmmm. Perhaps the host line working fine for ip connections as well, but something is going wrong in the JDBC-specific ip connections. Is there a way to make a local ip connection instead of a UNIX socket connection with psql? best, Russ >Russ McBride writes: > > 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 > >Nothing odd about that: the database name is defaulting to your PG user >name, evidently postgres. Try "psql -h localhost databasename" for >some valid database name. The important thing about this message is >that you are getting past the pg_hba.conf check, so this *is* forward >progress. > > regards, tom lane > >---------------------------(end of broadcast)--------------------------- >TIP 6: Have you searched our list archives? > >http://archives.postgresql.org