pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard Bayet <bayet@enseirb.fr>
To: pgsql-admin@postgresql.org
Subject: PostgreSQL and PHP for a web site, yes but ...
Date: Sun, 28 Jan 2001 00:32:55 +0100
Message-ID: <3A735AA7.2EBBBDF2@enseirb.fr> (raw)

How do I set up (here, to extend it) the maximum number of clients for a
database ?
I start postmaster with 'postmaster -i -N 16' (I can't use more than 16
due to the IPC sys V blabla ...).
I know N is the number of backend server processes, but does it have a
result on the maximum number of clients ?
Here's the problem i have on the web site i'm currently developping:
Unable to connect to PostgreSQL server: "Sorry, too many clients already
in -file i'm using to open the connection-" (i only open the connectiion
if there isn't one already opened) ...
Here's the stuff from php.ini:
[PostgresSQL]
pgsql.allow_persistent = On ; allow or prevent persistent link
pgsql.max_persistent = -1 ; maximum number of persistent links. -1 means
no limit
pgsql.max_links   = -1 ; maximum number of links (persistent+non
persistent).  -1 means no limit

So, it looks like the problem isn't coming from PHP ...
I'm worrying a bit because PostgreSQL is supposed to be a good choice
for dynamic web sites, but eh ... will i be able to have more than a
handful of visitors at the same time ? :)






view thread (3+ messages)  latest in thread

Message-ID: <3A735AA7.2EBBBDF2@enseirb.fr>
Permalink:  ../3A735AA7.2EBBBDF2@enseirb.fr/
Also on:    postgresql.org/message-id/3A735AA7.2EBBBDF2@enseirb.fr

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: bayet@enseirb.fr
  Subject: Re: PostgreSQL and PHP for a web site, yes but ...
  In-Reply-To: <3A735AA7.2EBBBDF2@enseirb.fr>
  References: <3A735AA7.2EBBBDF2@enseirb.fr>

* 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