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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: peter at abistar dot com
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Sun Jan 19 12:01:30 2025 UTC