Re: [HACKERS] Re: PHPBuilder article -- Postgres vs MySQL - Mailing list pgsql-general

From Marko Kreen
Subject Re: [HACKERS] Re: PHPBuilder article -- Postgres vs MySQL
Date
Msg-id 20001117035411.A10861@l-t.ee
Whole thread Raw
In response to Re: [HACKERS] Re: PHPBuilder article -- Postgres vs MySQL  (The Hermit Hacker <scrappy@hub.org>)
Responses Re: [HACKERS] Re: PHPBuilder article -- Postgres vs MySQL
List pgsql-general
On Thu, Nov 16, 2000 at 01:33:08PM -0400, The Hermit Hacker wrote:
> On Wed, 15 Nov 2000, Charles Tassell wrote:
>
> > Just a note, I've been using Postgres 7.02 and PHP 4.02 or 4.03 for about a
> > month in a couple sites, and haven't experienced any problems with
> > persistent connections.  Problem might have been fixed in one of the point
> > releases, or maybe I just don't have enough different db connections to
> > trigger it.
>
> I run PHP4 and IMP (http://www.horde.org) and we've gotten then to remove
> the useof pg_pconnect() since it is broken.  Broken how, you might
> ask?  Well, I ran on a standalone machine, no other web users but myself,
> to test, and each tim eI hit the database with IMP,. it opened a new
> backend, but it never reused old, idle ones ... eventually, you run out of
> the ability to connect since you've locked up all connections ...

Maybe you have the apache maxspareservers set too high?  I run
PHP4/apache (debian-woody) and it works ok.  If this is only IMP
site maybe you are better off

  apache.MaxClients = postgres.backendcount

Just a thought.

--
marko


pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: I know installation questions are boring ...
Next
From: Rich Shepard
Date:
Subject: Re: Strange problem upgrading to 7.0.3x