Re: pg_connect takes 3.0 seconds

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Dmitri Girski <mitek17(at)gmail(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: pg_connect takes 3.0 seconds
Date: 2010-01-05 05:14:09
Message-ID: 28249.1262668449@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Dmitri Girski <mitek17(at)gmail(dot)com> writes:
> I am running a PostgreSQL server 8.3.5 with a pretty much standard config.

> The web application server which runs Apache 1.3/PHP2.9 has an intermittent
> problem:
> pg_connect takes exactly 3.0 seconds. The usual connection time is 0.0045.
> The long request happens at approximate rate 1:100.

Sounds a lot like a dropped-packets problem. The exact timing would be
explained if that is the retransmit timeout in your client-side TCP
stack. If that's what it is, you need some network engineers, not us
database geeks ...

regards, tom lane

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Tom Lane 2010-01-05 05:15:55 Re: forced sequential scan when condition has current_user
Previous Message Craig James 2010-01-05 04:02:10 Re: DB is slow until DB is reloaded