psql does not pick up hostname without -h even though they ae the same

From: John Griffiths <griffithsjr(at)navair(dot)navy(dot)mil>
To: pgsql-bugs(at)postgresql(dot)org
Subject: psql does not pick up hostname without -h even though they ae the same
Date: 2003-08-27 18:43:14
Message-ID: 3F4CFBC2.80203@navair.navy.mil
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

When running psql locally using the tcp connect with tcpip_socket = true and
hostname_lookup = true in postgresql.conf, psql does not find localhost unless
the -h option is specified.

427 bash$ psql
psql: FATAL: No pg_hba.conf entry for host localhost, user jrg4598, database
jrg4598

428 bash$ psql -h localhost
Password:
Welcome to psql 7.3.4, the PostgreSQL interactive terminal.

Type: \copyright for distribution terms
\h for help with SQL commands
\? for help on internal slash commands
\g or terminate with semicolon to execute query
\q to quit

jrg4598=# \q
429 bash$

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2003-08-28 03:09:50 Re: psql does not pick up hostname without -h even though they ae the same
Previous Message Stephan Szabo 2003-08-27 17:46:09 Re: index not used afer VACUUM ANALYZE