RE: pg_connect vs. pg_pconnect - Mailing list pgsql-php
From | Hunter, Ray |
---|---|
Subject | RE: pg_connect vs. pg_pconnect |
Date | |
Msg-id | 59358A738F45D51186A30008C74CE2500A084B@slc-exc1.ctron.com Whole thread Raw |
In response to | pg_connect vs. pg_pconnect ("Hunter, Ray" <rhunter@enterasys.com>) |
Responses |
RE: pg_connect vs. pg_pconnect
|
List | pgsql-php |
RAY HUNTER
Automated Test Group
Software Support Engineer
ENTERASYS NETWORKS
rhunter@enterasys.com
www.enterasys.com
From: Leonello, Chris (C.R.) [mailto:cleonell@visteon.com]
Sent: Friday, August 10, 2001 11:45 AM
To: 'Hunter, Ray'; 'Chris Ruprecht'
Cc: Pgsql-php (E-mail)
Subject: RE: pg_connect vs. pg_pconnect
-----Original Message-----
From: Hunter, Ray [mailto:rhunter@enterasys.com]
Sent: Thursday, August 09, 2001 9:02 AM
To: 'Chris Ruprecht'
Cc: Pgsql-php (E-mail)
Subject: RE: pg_connect vs. pg_pconnectChris,I am currently doing testing right now and finding that this is the case. I think that there is some kind of bug. I have to go in and manually kill the sleeping processes that are remaining after the pg_pconnect calls.Another question for you is why does pg_pconnect work when pg_connect does not. I am running into this problem as I change some of the connections to pg_connect from pg_pconnect?Thanks,
RAY HUNTER
Automated Test Group
Software Support Engineer
ENTERASYS NETWORKS
rhunter@enterasys.com
www.enterasys.com
-----Original Message-----
From: Chris Ruprecht [mailto:chrup999@yahoo.com]
Sent: Thursday, August 09, 2001 6:52 AM
To: Hunter, Ray
Subject: Re: [PHP] pg_connect vs. pg_pconnectRay,I had the same problem (PG 7.1.2 on RedHat 7.0) and changed the procedures to only use pg_connect. The is probably a bug in the pg_pconnect ... pg_close functions.Best regards,Chris----- Original Message -----From: Hunter, RaySent: Thursday, August 09, 2001 7:42 AMSubject: RE: [PHP] pg_connect vs. pg_pconnectI am using both. When I use pg_pconnect it seems that the connections are still sleeping even after I close the connection ( pg_close( $conn ) ).
RAY HUNTER
Automated Test Group
Software Support Engineer
ENTERASYS NETWORKS
Internal: 53888
Phone: 801 887-9888
Fax: 801 972-5789
Cellular: 801 698-0622rhunter@enterasys.com
www.enterasys.com-----Original Message-----
From: Mitch Vincent [mailto:mvincent@cablespeed.com]
Sent: Wednesday, August 08, 2001 6:10 PM
To: Hunter, Ray; pgsql-php@postgresql.org
Subject: Re: [PHP] pg_connect vs. pg_pconnectIf you're using pg_connect they should be terminating... Are you using
pg_connect or pg_pconnect?-Mitch
Software development :
You can have it cheap, fast or working. Choose two.----- Original Message -----
From: "Hunter, Ray" <rhunter@enterasys.com>
To: <pgsql-php@postgresql.org>
Sent: Wednesday, August 08, 2001 7:40 PM
Subject: [PHP] pg_connect vs. pg_pconnect> I understand the difference between the two functions. However, when I
> watch my process under process management I notice that I have tons of
> sleeping process that are lingering. How can I make it so that when I
> connect to postgres and query that the connect process is then terminated?
> These sleeping connections are eating up my resources.
>
>
> Any suggestions?
>
>
>
> RAY HUNTER
> Automated Test Group
> Software Support Engineer
>
> ENTERASYS NETWORKS
>
> Internal: 53888
> Phone: 801 887-9888
> Fax: 801 972-5789
> Cellular: 801 698-0622
>
> rhunter@enterasys.com
>
> www.enterasys.com
>