Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 7D8546326B2 for ; Wed, 6 Jan 2010 00:39:55 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 72614-05 for ; Wed, 6 Jan 2010 04:39:45 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from ey-out-2122.google.com (ey-out-2122.google.com [74.125.78.26]) by mail.postgresql.org (Postfix) with ESMTP id AD6E0632433 for ; Wed, 6 Jan 2010 00:39:44 -0400 (AST) Received: by ey-out-2122.google.com with SMTP id 22so2524570eye.33 for ; Tue, 05 Jan 2010 20:39:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=z/e+6hzsaAzyAeyR3CWZayz0i2wS05kdiztXqKTLIl4=; b=vVpzaAPWeWaAKhZiZ1AYOGbCoYIsNBtKFB0mXu7L1a0xR651p9ThvyKrgye0RA7woW es/xRu7QoCt5lEYSxn7c8ZoOSdXRbIRHFU1dx7fF650vecGgDF/efuJwzB74ecblT+fu qR4AB6d1T0RhcvyhWcWmTzVgx+g9bAWesUK6w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=GDWL5ZBzJVIP7O8oKYAUU/njmh5DmskpVgn5EdGEWLpTgqHreuSD3bwVfPs8XEAhrk wkE0JNiw7LkY9YIXRXu0/6sn3Vv4wHNXL551EhSUqLiGOXb0aylaQuSaISgE6Ppm86Zg nacMngnBTlJE3u9HdZYzNm5gAVNNHf4QkHLwo= MIME-Version: 1.0 Received: by 10.216.89.140 with SMTP id c12mr690534wef.223.1262752780912; Tue, 05 Jan 2010 20:39:40 -0800 (PST) In-Reply-To: References: <28249.1262668449@sss.pgh.pa.us> Date: Tue, 5 Jan 2010 21:39:40 -0700 Message-ID: Subject: Re: pg_connect takes 3.0 seconds From: Scott Marlowe To: Dmitri Girski Cc: Tom Lane , pgsql-performance@postgresql.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.589 tagged_above=-10 required=5 tests=BAYES_00=-2.599, FH_DATE_PAST_20XX=3.188 X-Spam-Level: X-Archive-Number: 201001/57 X-Sequence-Number: 36937 On Tue, Jan 5, 2010 at 8:49 PM, Dmitri Girski wrote: > Hi Tom, > The timing is around 3.0 seconds > Time=3D3.0037 > Time=3D3.4038 > Time=3D3.0038 > Time=3D3.004 > Time=3D3.2037 > Time=3D3.0039 > Time=3D3.0034 > Time=3D3.0034 > Time=3D3.2039 > Time=3D3.0044 > Time=3D3.8044 > Time=3D3.2034 > > I don't think that it could relate to DNS problem as I tried 2 methods wh= ich > does not use name resolution ( hosts file & ip address) > I will=A0definitely seek the help from network geeks=A0and I will check a= ll TCP > stack settings. Have you looked at the various logs inn /var/log on both machines?