pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Newbie: pg_hba.conf question
3+ messages / 2 participants
[nested] [flat]

* Newbie: pg_hba.conf question
@ 2000-11-15 12:11  Marc Poinot <Marc.Poinot@onera.fr>
  0 siblings, 1 reply; 3+ messages in thread

From: Marc Poinot @ 2000-11-15 12:11 UTC (permalink / raw)
  To: pgsql-admin



Hi all,
I'm trying to use psql on SGI irix 6.
The build and install process seems to be ok, but
when I try to run the regress test suite, the
client commands failed. The postmaster had
started correctly, but no way to connect it.

The error looks like a well known one (see chapter 12 of
admin guide), but I cannot solve it:

The client says:

marcvs> psql
psql: No pg_hba.conf entry for host localhost, user marcvs, database marcvs

The pg_hba.conf in the PGDATA actually contains a line with:

local all trust

- Any well known install problem ?

-MP- 
 
-----------------------------------------------------------------------
 Marc POINOT             Alias: marcvs        Email: poinot@onera.fr
 ONERA -MFE/DSNA/ELSA    Tel: 01.46.73.42.84  Info: elsa-info@onera.fr
 29, Div. Leclerc        Fax: 01.46.73.41.66  Site:     
 92322 Chatillon FRANCE  Project: elsA        Web: http://www.onera.fr



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Newbie: pg_hba.conf question
@ 2000-11-15 16:41  Peter Eisentraut <peter_e@gmx.net>
  parent: Marc Poinot <Marc.Poinot@onera.fr>
  0 siblings, 1 reply; 3+ messages in thread

From: Peter Eisentraut @ 2000-11-15 16:41 UTC (permalink / raw)
  To: Marc Poinot <Marc.Poinot@onera.fr>; +Cc: pgsql-admin

Marc Poinot writes:

> marcvs> psql
> psql: No pg_hba.conf entry for host localhost, user marcvs, database marcvs
> 
> The pg_hba.conf in the PGDATA actually contains a line with:
> 
> local all trust

"local" is not the same a "localhost".  The former refers to a Unix domain
socket connection, the latter to a TCP/IP connection, which requires a
"host" record in pg_hba.conf.  To use a "local" connection you need to
unset the PGHOST environment variable, in case you have it set.

-- 
Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Newbie: pg_hba.conf question
@ 2000-11-16 08:17  Marc Poinot <Marc.Poinot@onera.fr>
  parent: Peter Eisentraut <peter_e@gmx.net>
  0 siblings, 0 replies; 3+ messages in thread

From: Marc Poinot @ 2000-11-16 08:17 UTC (permalink / raw)
  To: Peter Eisentraut <peter_e@gmx.net>; +Cc: Marc Poinot <Marc.Poinot@onera.fr>; pgsql-admin

Peter Eisentraut wrote:
> 
> Marc Poinot writes:
> 
> > marcvs> psql
> > psql: No pg_hba.conf entry for host localhost, user marcvs, database marcvs
> >
> > The pg_hba.conf in the PGDATA actually contains a line with:
> >
> > local all trust
> 
> "local" is not the same a "localhost".  The former refers to a Unix domain
> socket connection, the latter to a TCP/IP connection, which requires a
> "host" record in pg_hba.conf.  To use a "local" connection you need to
> unset the PGHOST environment variable, in case you have it set.
> 
Thanks for the answer.
Actually, I did rebuild the software with a -n32 mode instead of
the -64 (our SGI default). I works perfectly, but we also made
some adds for distant hosts in pg_hba.conf, thus I cannot really
tell you which modification was the right one.

-MP- 

-----------------------------------------------------------------------
 Marc POINOT             Alias: marcvs        Email: poinot@onera.fr
 ONERA -MFE/DSNA/ELSA    Tel: 01.46.73.42.84  Info: elsa-info@onera.fr
 29, Div. Leclerc        Fax: 01.46.73.41.66  Site:     
 92322 Chatillon FRANCE  Project: elsA        Web: http://www.onera.fr



^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2000-11-16 08:17 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2000-11-15 12:11 Newbie: pg_hba.conf question Marc Poinot <Marc.Poinot@onera.fr>
2000-11-15 16:41 ` Peter Eisentraut <peter_e@gmx.net>
2000-11-16 08:17   ` Marc Poinot <Marc.Poinot@onera.fr>

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