X-Original-To: pgsql-php@postgresql.org Received: from localhost (unknown [64.117.224.193]) by developer.postgresql.org (Postfix) with ESMTP id D0C3C9255E0 for ; Mon, 19 May 2003 17:59:23 -0400 (EDT) Received: from developer.postgresql.org ([64.117.224.193]) by localhost (developer.postgresql.org [64.117.224.193:10024]) (amavisd-new) with ESMTP id 29885-03 for ; Mon, 19 May 2003 17:58:51 -0400 (EDT) Received: from smtp2.mail.be.easynet.net (smtp2.mail.be.easynet.net [212.100.160.76]) by developer.postgresql.org (Postfix) with ESMTP id 4D4A7925088 for ; Sun, 18 May 2003 08:29:30 -0400 (EDT) Received: from bidibule.office.be.easynet.net ([212.100.163.150]) by smtp2.mail.be.easynet.net with esmtp (Exim 4.14) id 19HNIA-00071z-B3; Sun, 18 May 2003 14:29:30 +0200 Received: from rb by bidibule.office.be.easynet.net with local (Exim 3.35 #1 (Debian)) id 19HNHf-0006XO-00; Sun, 18 May 2003 14:28:59 +0200 Date: Sun, 18 May 2003 14:28:59 +0200 From: Raphael Bauduin To: David Busby Cc: pgsql-php@postgresql.org Subject: Re: Number of connections Message-ID: <20030518122859.GA25073@raphael> References: <03bf01c31ca5$ac0e5d70$1100000a@busbydev> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <03bf01c31ca5$ac0e5d70$1100000a@busbydev> User-Agent: Mutt/1.4i X-Scanner: exiscan for exim4 (http://duncanthrax.net/exiscan/) *19HNIA-00071z-B3*h7b2KITDcKA* X-Virus-Scanned: by amavisd-new X-Archive-Number: 200305/25 X-Sequence-Number: 2030 A related mail I tried to post on the list yesterday but that I got back.... when inserting a record in a PHP script, I sometimes use the currval function on the corresponding sequence to get the id of the row inserted. Maybe a stupid question, but I wondered if when using persisten connection, I could be sure there would be no problem. From the doc, currval "Returns the value most recently obtained by nextval for this sequence in the current server process." Can you confirm me several script using the same persistent connection in parallel are in separate server processes? Thanks. Raph On Sat, May 17, 2003 at 11:53:44AM -0700, David Busby wrote: > List, > I cannot tell from the documentation if pg_pconnect() or pg_connect() > are really different in how the connection pool is managed. Does anyone > know if that is the case? Seems that using pg_pconnect would dictate "use a > pooled connection" and pg_connect is "use a pooled connection, or make a new > one". On "live" apps which is better to use, seems pg_pconnect. Thoughts? > > David Busby > Systems Engineer > busby@pnts.com > > > ---------------------------(end of broadcast)--------------------------- > TIP 4: Don't 'kill -9' the postmaster