php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #12724 persistent connections with postgres
Submitted: 2001-08-13 15:15 UTC Modified: 2001-08-13 17:37 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: peter at abistar dot com Assigned:
Status: Closed Package: PostgreSQL related
PHP Version: 4.0.4pl1 OS: Linux (RH 7.1)
Private report: No CVE-ID: None
 [2001-08-13 15:15 UTC] peter at abistar dot com
I created a persistent connection to postgres (7.03).
I establish a connection for every page opened.
This in turn creates a new process (ps -aux|grep postgres)
which it should not.
I pass the connection parameters as one string. (I printed the string out to make sure it did not change);

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-08-13 17:27 UTC] peter at abistar dot com
I rechecked the bug database and there are other reports which seem to complain about the same problem.
When my web page performs a pconnect it should connect to the previous process, if the process has been callesd with the same parameters (dbname, name, password, port).
I am running phpgroupware, and the php interpreter generated new connections (processes) when there were idle ones around.
 

 [2001-08-13 17:37 UTC] derick@php.net
This should be fixed in php 4.0.6. Please reopen if it still does not work correctly for you.

Derick
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 09:01:27 2024 UTC