Re: Postgress jobs stick around after they have completed

From: Chris Ruprecht <chrup999(at)yahoo(dot)com>
To: <pgsql-php(at)postgresql(dot)org>
Subject: Re: Postgress jobs stick around after they have completed
Date: 2001-06-29 02:03:07
Message-ID: B7614C0A.2079%chrup999@yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-php

on 06/25/2001 23:09, Jason k Larson at jlarson(at)techpilots(dot)net wrote:

> Hello -
>
> Your result of 1 means the close was (supposedly) successful. Not
> sure why you have processes still running though. I would certainly
> expect this pg_pconnect .. are you certain that nowhere else in the
> script is attempting persistent connections? Or was using persistent
> connections .. when in doubt .. try restarting Apache (apachectl
> restart) and see if this process goes away (as it should if PHP
> launched it, etc.)

Ok - I found the bug - I did a pg_pconnect(...). After I changed that to a
pg_connect, the session terminated upon pg_close( ... ).

Since I have not quite been able to locate any docs on PHP-PG connections
and their commands - why would I use a persistent connection? What can I do
with it? Will it stay open until - when?

Thanks for your help guys!!
Chris

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

Browse pgsql-php by date

  From Date Subject
Next Message Hervé Piedvache 2001-07-03 15:07:19 [PGSQL/PHP] Trouble: pq_recvbuf: unexpected EOF on client connection
Previous Message Jason k Larson 2001-06-27 22:36:36 Re[2]: PHP 4.0.6 and PostgreSQL