Re: (Win32 Postgres) Slow to Connect first - OK afterwards - Mailing list pgsql-general

From Tom Lane
Subject Re: (Win32 Postgres) Slow to Connect first - OK afterwards
Date
Msg-id 27925.1121613783@sss.pgh.pa.us
Whole thread Raw
In response to (Win32 Postgres) Slow to Connect first - OK afterwards  ("Scott cox" <sadcox66@hotmail.com>)
List pgsql-general
"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

pgsql-general by date:

Previous
From: Martijn van Oosterhout
Date:
Subject: Re: (Win32 Postgres) Slow to Connect first - OK afterwards
Next
From: Harry Mantheakis
Date:
Subject: Re: Japanese words not distinguished - Solution