Skip site navigation (1) Skip section navigation (2)

Re: PHP and PostgreSQL

From: mlw <markw(at)mohawksoft(dot)com>
To: Matthew <matt(at)ctlno(dot)com>
Cc: "'Bruce Momjian'" <pgman(at)candle(dot)pha(dot)pa(dot)us>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>, PostgreSQL-interfaces <pgsql-interfaces(at)postgresql(dot)org>
Subject: Re: PHP and PostgreSQL
Date: 2000-12-27 15:15:42
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackerspgsql-interfaces
Matthew wrote:
>         I have been asked by the major PHP developer Rasmus Lerdorf to see
> if
>         the PostgreSQL/PHP interface needs any improvements.
>         Is the current PostgreSQL interface module in PHP adequate?  Does it
>         support all the current libpq features?
> The only problem we have run into (and I have heard of others having this
> problem also) is with persistent connections.  I have seen discussion on
> persistent connection problems but I'm not sure the problem was ever
> resolved.  The problem we have seen is that when using persistent
> connections the web server doesn't seen to reuse the connections or somthing
> to that effect.  The result being that we eventually use up our postgres
> limit of 48 connections and nothing can connect to postgre anymore.  It is
> possible that this is a configuration problem that we haven't sufficiently
> investigated, but I meniton it because I have heard other talk of this.
> Anyone have more information?
I have not seen this, though now that you mention it, I will be on the

We have a load balenced system with [n] apache servers, each with a
local Postgres database that receives updates from a master.

On the local web servers, we have done a good deal of load testing. Our
apache instances are pretty persistent, i.e. we do not have a time out
or maximum number of transactions. I never see more more postgres
instances than I have apache instances. We are using pg_pConnect to
connect to the postgres system.

The behavior may differ if the database is on a different system.


In response to

pgsql-hackers by date

Next:From: Tom LaneDate: 2000-12-27 15:18:45
Subject: Re: Re: Tuple-valued datums on Alpha (was Re: 7.1 on DEC/Alpha)
Previous:From: Rod TaylorDate: 2000-12-27 15:09:59
Subject: Re: PHP and PostgreSQL

pgsql-interfaces by date

Next:From: Adam LangDate: 2000-12-27 16:24:26
Subject: Re: PHP and PostgreSQL
Previous:From: Rod TaylorDate: 2000-12-27 15:09:59
Subject: Re: PHP and PostgreSQL

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group