"Jawad Hussain" <jhussain2(at)csc(dot)com> writes:
> WARNING: could not create listen socket for "localhost"
> FATAL: could not create any TCP/IP sockets
Sounds like your machine's DNS setup is broken, to the point where it
can't resolve the name "localhost".
regards, tom lane