From: Tom Lane <tgl@sss.pgh.pa.us>
To: Kevin Grittner <Kevin.Grittner@wicourts.gov>
Cc: mindas@gmail.com
Cc: pgsql-admin@postgresql.org
Subject: Re: Establishing remote connections is slow
Date: Tue, 17 Jan 2012 14:23:48 -0500
Message-ID: <22686.1326828228@sss.pgh.pa.us> (raw)
In-Reply-To: <4F155D480200002500044884@gw.wicourts.gov>
References: <CAKTEH83nqC5NBZjWJ2ZAW8eBMWjW3N6G3RhbsWy68rMgf=MF1Q@mail.gmail.com>
<4F15517F0200002500044874@gw.wicourts.gov>
<4F15517F0200002500044874@gw.wicourts.gov>
<20244.1326820717@sss.pgh.pa.us>
<4F155D480200002500044884@gw.wicourts.gov>
"Kevin Grittner" <Kevin.Grittner@wicourts.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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, Kevin.Grittner@wicourts.gov, mindas@gmail.com
Subject: Re: Establishing remote connections is slow
In-Reply-To: <22686.1326828228@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox