John Griffiths <griffithsjr@navair.navy.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