Re: Newbie: pg_hba.conf question

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Marc Poinot <Marc(dot)Poinot(at)onera(dot)fr>
Cc: "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Newbie: pg_hba.conf question
Date: 2000-11-15 16:41:06
Message-ID: Pine.LNX.4.21.0011151739280.779-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)gmx(dot)net http://yi.org/peter-e/

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Alfred Perlstein 2000-11-15 17:00:25 Re: Losing data from Postgres
Previous Message Serge Canizares 2000-11-15 16:17:01 Re: Losing data from Postgres