PG Bug reporting form <noreply(at)postgresql(dot)org> writes:
> Currently, PostgreSQL defaults to listen on 'localhost', which translates to
> single-stack IPv4 loopback address 127.0.0.1.
The definition of "localhost" is determined by your local DNS
configuration, not by Postgres.
regards, tom lane