Skip site navigation (1) Skip section navigation (2)

Re: Establishing remote connections is slow

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
Cc: mindas(at)gmail(dot)com, pgsql-admin(at)postgresql(dot)org
Subject: Re: Establishing remote connections is slow
Date: 2012-01-17 19:23:48
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-admin
"Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov> writes:
> Actually, where I've seen this sort of problem, it was the client
> code which was doing the unnecessary reverse DNS lookup.  What
> controls this in psql?

psql?  AFAIR psql itself doesn't do any such thing.

It's possible that certain libraries such as SSL or Kerberos might
do an RDNS lookup internally, though.  The OP showed he was using
md5 (password) authentication, so we can discount authentication
libraries, but I wonder whether openssl ever does DNS lookups,
and if so how to control that.  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.)

			regards, tom lane

In response to


pgsql-admin by date

Next:From: Frank LanitzDate: 2012-01-17 19:30:17
Subject: Re: Post Removal
Previous:From: Joshua D. DrakeDate: 2012-01-17 19:15:04
Subject: Re: [ADMIN] Post Removal

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group