pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Craig Ringer <craig@postnewspapers.com.au>
To: Dmitri Girski <mitek17@gmail.com>
Cc: Andy Colson <andy@squeakycode.net>
Cc: pgsql-performance@postgresql.org
Subject: Re: pg_connect takes 3.0 seconds
Date: Wed, 06 Jan 2010 12:50:47 +0800
Message-ID: <4B4416A7.1040808@postnewspapers.com.au> (raw)
In-Reply-To: <daed64561001051925k26682e50ue1792e7032a75bd5@mail.gmail.com>
References: <daed64561001041812s602a3098l686f630d6448835f@mail.gmail.com>
	<4B4354B0.8030400@squeakycode.net>
	<daed64561001051925k26682e50ue1792e7032a75bd5@mail.gmail.com>

Dmitri Girski wrote:
> Hi Andy,
> 
> I tried  2 connections strings:
> - server name (DB1),  which is listed in all machines hosts files.
> - ip address.
> 
> There is no difference in both methods, still I have 5-7 pg_connects which
> last around 3 seconds.

Don't rule out reverse DNS issues (such as a negative cache entry
expiring and being re-checked), packet loss, nss issues on the server
related to NIS, LDAP etc user directories, and so on.

Wireshark is your friend.

--
Craig Ringer



view thread (21+ messages)  latest in thread

Message-ID: <4B4416A7.1040808@postnewspapers.com.au>
Permalink:  ../4B4416A7.1040808@postnewspapers.com.au/
Also on:    postgresql.org/message-id/4B4416A7.1040808@postnewspapers.com.au

 · 

reply

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-performance@postgresql.org
  Cc: craig@postnewspapers.com.au, mitek17@gmail.com, andy@squeakycode.net
  Subject: Re: pg_connect takes 3.0 seconds
  In-Reply-To: <4B4416A7.1040808@postnewspapers.com.au>

* 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