pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Shridhar Daithankar <shridhar_daithankar@persistent.co.in>
To: pgsql-performance@postgresql.org
Subject: Re: 100 simultaneous connections, critical limit?
Date: Wed, 14 Jan 2004 18:31:00 +0530
Message-ID: <200401141831.00453.shridhar_daithankar@persistent.co.in> (raw)
In-Reply-To: <40053A91.5060001@physicallink.com>
References: <40053A91.5060001@physicallink.com>

On Wednesday 14 January 2004 18:18, Jón Ragnarsson wrote:
> I am writing a website that will probably have some traffic.
> Right now I wrap every .php page in pg_connect() and pg_close().
> Then I read somewhere that Postgres only supports 100 simultaneous
> connections (default). Is that a limitation? Should I use some other
> method when writing code for high-traffic website?

Yes. You should rather investigate connection pooling.

I am no php expert but probably this could help you..

http://www.php.net/manual/en/function.pg-pconnect.php

 Shridhar





view thread (14+ messages)  latest in thread

Message-ID: <200401141831.00453.shridhar_daithankar@persistent.co.in>
Permalink:  ../200401141831.00453.shridhar_daithankar@persistent.co.in/
Also on:    postgresql.org/message-id/200401141831.00453.shridhar_daithankar@persistent.co.in

 · 

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: shridhar_daithankar@persistent.co.in
  Subject: Re: 100 simultaneous connections, critical limit?
  In-Reply-To: <200401141831.00453.shridhar_daithankar@persistent.co.in>

* 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