pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Hervé Piedvache <herve@elma.fr>
To: pgsql-php@postgresql.org
Subject: pg_pconnect - Really persistent ?
Date: Wed, 06 Dec 2000 12:29:00 +0100
Message-ID: <3A2E22FC.2E1A2C01@elma.fr> (raw)

Hi,

I have some troubles with the pg_pconnect function ...

All my PHP scripts are using pg_pconnect but apache seems to not using
the persistent connection ... ?
I mean that when I make a small script usign a pg_pconnect, and a simple
select ... I open 2 browsers and call many time my scrip, I look for the
backends of postgresql and I see many backends opened !

If I try for example to limit the backend to 35, and run an ab (apache
bench) to call the page ... after the 35 connections opened postgresql
say there is no more connection possible ... ok ! but why the
persistents connexions are not re-used ?

Does someone could explain me how I have to do ... ?

In same time I have also try with php.ini to refuse the pgsql
persistents connections but they seem to run !? what this option is for
?
I also try to limit the number of connections also in php.ini to 5 for
example ... and I open 35 postgres backends with any trouble !! :(

Thanks for your answers ...

regards,
-- 
Hervé



view thread (4+ messages)  latest in thread

Message-ID: <3A2E22FC.2E1A2C01@elma.fr>
Permalink:  ../3A2E22FC.2E1A2C01@elma.fr/
Also on:    postgresql.org/message-id/3A2E22FC.2E1A2C01@elma.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-php@postgresql.org
  Cc: herve@elma.fr
  Subject: Re: pg_pconnect - Really persistent ?
  In-Reply-To: <3A2E22FC.2E1A2C01@elma.fr>
  References: <3A2E22FC.2E1A2C01@elma.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