pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tommy Gildseth <tommy.gildseth@usit.uio.no>
To: firerox@centrum.cz
Cc: pgsql-performance@postgresql.org
Subject: Re: slow pg_connect()
Date: Mon, 24 Mar 2008 11:48:20 +0100
Message-ID: <47E786F4.9040804@usit.uio.no> (raw)
In-Reply-To: <200803240840.8128@centrum.cz>
References: <200803240840.8128@centrum.cz>

firerox@centrum.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



view thread (7+ messages)  latest in thread

Message-ID: <47E786F4.9040804@usit.uio.no>
Permalink:  ../47E786F4.9040804@usit.uio.no/
Also on:    postgresql.org/message-id/47E786F4.9040804@usit.uio.no

 · 

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: tommy.gildseth@usit.uio.no, firerox@centrum.cz
  Subject: Re: slow pg_connect()
  In-Reply-To: <47E786F4.9040804@usit.uio.no>

* 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