Re: Establishing remote connections is slow - Mailing list pgsql-admin

From Craig James
Subject Re: Establishing remote connections is slow
Date
Msg-id CAFwQ8rfzTLU=p7034RfLhbC2JeNeiPgbQPB2kPttL3cj6SeFEw@mail.gmail.com
Whole thread Raw
In response to Re: Establishing remote connections is slow  (Mindaugas Žakšauskas <mindas@gmail.com>)
List pgsql-admin
2012/1/17 Mindaugas Žakšauskas <mindas@gmail.com>
On Tue, Jan 17, 2012 at 7:23 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> <..>  Mindaugas, are you using SSL,
> and if so can you turn it off and see whether things change?
> (It should be safe to do so at least on the "localhost" connection,
> even if you feel your network is insecure.)

No, I am not using SSL; it is either disabled or the default setting
is off anyway. This was one of the first things I have checked.
Moreover, this would probably make it hard to explain why does it take
no time to establish connections immediately after PostgreSQL restart
and why it does it degrade later.

To respond to previous emails - we tried doing DNS lookups against the
client host and they took no time.

Try putting the hostnames and IP addresses in /etc/hosts ... first on the server (for the client) and then on the client (for the server).

Craig
 

Thanks for your ideas.

Regards,
Mindaugas

--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin

pgsql-admin by date:

Previous
From: "Lukas"
Date:
Subject: Re: Establishing remote connections is slow
Next
From: Manoj Govindassamy
Date:
Subject: Re: PG synchronous replication and unresponsive slave