Received: from ctron-dnm.ctron.com (ctron-dnm.cabletron.com [12.25.1.120]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f5PMXaa67609 for ; Mon, 25 Jun 2001 18:33:36 -0400 (EDT) (envelope-from rhunter@enterasys.com) Received: (from uucp@localhost) by ctron-dnm.ctron.com (8.8.7/8.8.7) id SAA26991; Mon, 25 Jun 2001 18:40:37 -0400 (EDT) Received: from unknown(134.141.77.103) by ctron-dnm.ctron.com via smap (4.1) id xma026967; Mon, 25 Jun 01 18:40:17 -0400 Received: by cnc-exc2.ctron.com with Internet Mail Service (5.5.2653.19) id ; Mon, 25 Jun 2001 18:33:07 -0400 Message-ID: <59358A738F45D51186A30008C74CE2500A07B1@slc-exc1.ctron.com> From: "Hunter, Ray" To: "'Chris Ruprecht'" Cc: "Pgsql-php (E-mail)" Subject: RE: Postgress jobs stick around after they have completed Date: Mon, 25 Jun 2001 18:32:58 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C0FDC6.C8F0CC70" X-Archive-Number: 200106/55 X-Sequence-Number: 452 This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C0FDC6.C8F0CC70 Content-Type: text/plain; charset="iso-8859-1" You might want to have the connection be a "pg_pconnect()" and then use a close() to close the connection. Ray -----Original Message----- From: Chris Ruprecht [mailto:chrup999@yahoo.com] Sent: Monday, June 25, 2001 1:06 PM To: p-php Subject: [PHP] Postgress jobs stick around after they have completed Hi all, This is on: RedHat Linux 7.0 Apache 1.3.20 PHP 4.0.6 PostGreSQL 7.1.2 I run a procedure which does a $conn = pg_connect(...); and later a $res = pg_close( $conn ); The later returns '1' as a result - not sure if that is good or bad (0 = false, 1 = true?). However, I have the completed job still hanging around when I do a ps -ef: postgres 7493 928 14 13:55 ? 00:00:34 postgres: apache phones [local] Where am I going wrong? Best regards, Chris _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com ---------------------------(end of broadcast)--------------------------- TIP 6: Have you searched our list archives? http://www.postgresql.org/search.mpl ------_=_NextPart_001_01C0FDC6.C8F0CC70 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable RE: [PHP] Postgress jobs stick around after they have completed</TIT= LE> </HEAD> <BODY> <P><FONT SIZE=3D2>You might want to have the connection be a "pg_pconn= ect()" and then use a close() to close the connection.  </FONT> </P> <P><FONT SIZE=3D2>Ray</FONT> </P> <P><FONT SIZE=3D2>-----Original Message-----</FONT> <BR><FONT SIZE=3D2>From: Chris Ruprecht [<A HREF=3D"mailto:chrup999@yahoo.c= om">mailto:chrup999@yahoo.com</A>]</FONT> <BR><FONT SIZE=3D2>Sent: Monday, June 25, 2001 1:06 PM</FONT> <BR><FONT SIZE=3D2>To: p-php</FONT> <BR><FONT SIZE=3D2>Subject: [PHP] Postgress jobs stick around after they ha= ve completed</FONT> </P> <BR> <P><FONT SIZE=3D2>Hi all,</FONT> </P> <P><FONT SIZE=3D2>This is on:</FONT> <BR><FONT SIZE=3D2>RedHat Linux 7.0</FONT> <BR><FONT SIZE=3D2>Apache 1.3.20</FONT> <BR><FONT SIZE=3D2>PHP 4.0.6</FONT> <BR><FONT SIZE=3D2>PostGreSQL 7.1.2</FONT> </P> <P><FONT SIZE=3D2>I run a procedure which does a  $conn =3D pg_connect= (...); and later a $res =3D</FONT> <BR><FONT SIZE=3D2>pg_close( $conn );</FONT> <BR><FONT SIZE=3D2>The later returns '1' as a result - not sure if that is = good or bad (0 =3D</FONT> <BR><FONT SIZE=3D2>false, 1 =3D true?). However, I have the completed job s= till hanging around</FONT> <BR><FONT SIZE=3D2>when I do a ps -ef:</FONT> <BR><FONT SIZE=3D2>postgres  7493   928 14 13:55 ? &nbs= p;      00:00:34 postgres: apache phones</FONT> <BR><FONT SIZE=3D2>[local]</FONT> </P> <P><FONT SIZE=3D2>Where am I going wrong?</FONT> </P> <P><FONT SIZE=3D2>Best regards,</FONT> <BR><FONT SIZE=3D2>Chris</FONT> </P> <BR> <P><FONT SIZE=3D2>_________________________________________________________= </FONT> <BR><FONT SIZE=3D2>Do You Yahoo!?</FONT> <BR><FONT SIZE=3D2>Get your free @yahoo.com address at <A HREF=3D"http://ma= il.yahoo.com" TARGET=3D"_blank">http://mail.yahoo.com</A></FONT> </P> <BR> <P><FONT SIZE=3D2>---------------------------(end of broadcast)------------= ---------------</FONT> <BR><FONT SIZE=3D2>TIP 6: Have you searched our list archives?</FONT> </P> <P><FONT SIZE=3D2><A HREF=3D"http://www.postgresql.org/search.mpl" TARGET= =3D"_blank">http://www.postgresql.org/search.mpl</A></FONT> </P> </BODY> </HTML> ------_=_NextPart_001_01C0FDC6.C8F0CC70--