John Griffiths <griffithsjr(at)navair(dot)navy(dot)mil> writes:
> 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.
I think you've got something weird in your PGHOST environment variable
on the client side.
regards, tom lane