Re: (Win32 Postgres) Slow to Connect first - OK afterwards

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Scott cox" <sadcox66(at)hotmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: (Win32 Postgres) Slow to Connect first - OK afterwards
Date: 2005-07-17 15:23:03
Message-ID: 27925.1121613783@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Scott cox" <sadcox66(at)hotmail(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Harry Mantheakis 2005-07-17 20:28:30 Re: Japanese words not distinguished - Solution
Previous Message Martijn van Oosterhout 2005-07-17 14:53:25 Re: (Win32 Postgres) Slow to Connect first - OK afterwards