X-Original-To: pgsql-php-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 09890D1C4DB for ; Fri, 8 Aug 2003 13:50:32 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 35614-02 for ; Fri, 8 Aug 2003 10:49:08 -0300 (ADT) Received: from mail1.ihs.com (mail1.ihs.com [170.207.70.222]) by svr1.postgresql.org (Postfix) with ESMTP id DF1BBD1C4CA for ; Fri, 8 Aug 2003 10:50:20 -0300 (ADT) Received: from css120.ihs.com (css120.ihs.com [170.207.105.120]) by mail1.ihs.com (8.12.9/8.12.9) with ESMTP id h78DlgbS023792; Fri, 8 Aug 2003 07:48:22 -0600 (MDT) Date: Fri, 8 Aug 2003 07:33:25 -0600 (MDT) From: "scott.marlowe" To: Rod Taylor Cc: Markus Bertheau , Andreas Schmitz , Subject: Re: Using Cursors in PHP In-Reply-To: <1060350130.97914.4.camel@jester> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-MailScanner: Found to be clean X-MailScanner-SpamCheck: X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200308/28 X-Sequence-Number: 2205 On Fri, 8 Aug 2003, Rod Taylor wrote: > > I don't think so. Basically, PHP is supposed to reset the connection if > > it's persistant, and if it isn't persistant, then it's always a new > > connection, which means a cursor shouldn't survive. > > > > But I'm NOT familiar with "WITH HOLD" right now, so someone else who knows > > that better may have a more definitive answer. > > Yup.. This is where you setup a little Java to deal with persistent > database elements like this and hook into it via PHP. It's a little > nasty at the moment (though functional) but is supposedly greatly > improved in PHP 5. > > http://ca2.php.net/manual/en/ref.java.php Java providing connection pooling for PHP. Sweet!