"Scott cox" <sadcox66@hotmail.com> writes:
> I am running PostgreSQL 8.0 on WinXP
> When I try to connect
> psql.exe" -h localhost -p 5432 template1 "postgres"
> I have to wait
> 30 seconds before the Password: Prompt arrives
> 30 seconds after the password is entered.
> Once I am connected access is fast. I figured the problem is Authentication.
Actually, I bet the problem is a broken DNS setup, causing psql to spend
30 seconds trying to resolve the hostname "localhost" before it gives up
and resorts to a different way of resolving the hostname. Check your
DNS configuration --- for instance, are you pointing to a name server
that actually works?
regards, tom lane