Andrew Dunstan <andrew(at)dunslane(dot)net> writes:
> I did wonder if we should treate "localhost" as a bit special and not
> rely on the resolver for it.
I don't think so; we went in the other direction in 7.4 for pgstats.
(It used to try to bind to "127.0.0.1" and now tries "localhost".)
So far I've not seen any evidence that makes me think that was a bad
choice.
regards, tom lane