php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11229 1 is not valid postgresql link resource
Submitted: 2001-05-31 19:22 UTC Modified: 2001-08-19 02:49 UTC
From: jon dot romalo at compeng dot net Assigned:
Status: Closed Package: PostgreSQL related
PHP Version: 4.0.4pl1 OS: RedHat 6.2 kernel v 2.2.17-14
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: jon dot romalo at compeng dot net
New email:
PHP Version: OS:

 

 [2001-05-31 19:22 UTC] jon dot romalo at compeng dot net
This may be the identical to bug #10153.

In a page with about 10 calls to a postgresql database, some of the calls would work and some would fail with the error "1 is not a valid postgresql link resource in file ..." where 1 is the refcount value. The calls seemed to work or fail at random, each time I reloaded the page. It seems as though a max number of processes was being encountered.

Changing from a pg_connect to a pg_pconnect (persistent connection) fixed the problem.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-05-31 23:23 UTC] sniper@php.net
Duplicate of #10153

 [2001-08-19 02:49 UTC] sniper@php.net
The bug report this one was duplicate of is closed.
Please check #10153 for more information.

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed May 07 23:01:27 2025 UTC