Re: slow pg_connect()

From: Tommy Gildseth <tommy(dot)gildseth(at)usit(dot)uio(dot)no>
To: firerox(at)centrum(dot)cz
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: slow pg_connect()
Date: 2008-03-24 10:48:20
Message-ID: 47E786F4.9040804@usit.uio.no
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

firerox(at)centrum(dot)cz wrote:
> Hi,
>
> I'm uning postgres 8.1 at P4 2.8GHz with 2GB RAM.
> (web server + database on the same server)
>
> Please, how long takes your connectiong to postgres?
>
> It takes more then 0.05s :(
>
> Only this function reduce server speed max to 20request per second.

I tried running the script a few times, and got substantially lower
start up times than you are getting. I'm using 8.1.11 on Debian on a 2x
Xeon CPU 2.40GHz with 3GB memory, so I don't think that would account
for the difference.

Generated in 0.0046 s
Generated in 0.0036 s
Generated in 0.0038 s
Generated in 0.0037 s
Generated in 0.0038 s
Generated in 0.0037 s
Generated in 0.0047 s
Generated in 0.0052 s
Generated in 0.005 s

--
Tommy Gildseth

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message PFC 2008-03-24 11:23:29 Preparing statements on connection startup
Previous Message Andreas Kretschmer 2008-03-24 10:07:19 Re: increasing shared buffer slow downs query performance.