Date: 07/08/00
- Next message: Bob Bowker: "Re: [phplib] Problem with permanent connections?"
- Previous message: Danny Tuppeny / Web Fever: "Re: [phplib] Few questions about PHP"
- Maybe in reply to: fabrizio.ermini <email protected>: "[phplib] Problem with permanent connections?"
- Next in thread: Bob Bowker: "Re: [phplib] Problem with permanent connections?"
- Reply: Bob Bowker: "Re: [phplib] Problem with permanent connections?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> > I'd guess that
> > pgsql.max_persistent times apache MaxClients needs to be less than the
max
> > number of pgsql back ends.
> >
>
> This surprises me a little. I thought there were a 1:1 relation
> between apache child processes and database connections. Why
> a http server process should need more than one database
> connection?
I think it keeps one connection per database/uid pair. So if you need to
connect to two different db's, or one db but as two different users then
you'll keep additional persistent connections. If you have your own
personal database and then a shared test database you'll have two
connections open.
I've noticed this because I use a few different php applications, and each
has its own database. But I use very few apache processes so it's OK.
Toby
---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>
- Next message: Bob Bowker: "Re: [phplib] Problem with permanent connections?"
- Previous message: Danny Tuppeny / Web Fever: "Re: [phplib] Few questions about PHP"
- Maybe in reply to: fabrizio.ermini <email protected>: "[phplib] Problem with permanent connections?"
- Next in thread: Bob Bowker: "Re: [phplib] Problem with permanent connections?"
- Reply: Bob Bowker: "Re: [phplib] Problem with permanent connections?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

