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/