pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
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:56:29 -0700
Message-ID: <v04210103b7dc469a6205@[64.170.120.144]> (raw)
In-Reply-To: <530.1001820519@sss.pgh.pa.us>
References: <NEBBLAAHGLEEPCGOBHDGCEKBDLAA.nickf@ontko.com>
	<v04210103b7dc258398f3@[64.170.120.108]>
	<358.1001818864@sss.pgh.pa.us>
	<v04210102b7dc3f72b303@[64.170.120.144]>
	<530.1001820519@sss.pgh.pa.us>

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 <Russ@psyex.com> 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




view thread (18+ messages)  latest in thread

Message-ID: <v04210103b7dc469a6205@[64.170.120.144]>
Permalink:  ../v04210103b7dc469a6205@%5B64.170.120.144%5D/
Also on:    postgresql.org/message-id/v04210103b7dc469a6205@[64.170.120.144]

 · 

reply

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: <v04210103b7dc469a6205@[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]> <530.1001820519@sss.pgh.pa.us> <v04210103b7dc469a6205@[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