X-Original-To: pgsql-php@postgresql.org Received: from localhost (unknown [64.117.224.193]) by developer.postgresql.org (Postfix) with ESMTP id B68D7925893 for ; Fri, 23 May 2003 01:45:41 -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 64884-06 for ; Fri, 23 May 2003 01:45:09 -0400 (EDT) Received: from houston.familyhealth.com.au (unknown [203.59.48.253]) by developer.postgresql.org (Postfix) with ESMTP id 2E563925B74 for ; Thu, 22 May 2003 22:13:39 -0400 (EDT) Received: (from root@localhost) by houston.familyhealth.com.au (8.11.6p2/8.11.6) id h4N2DdZ49885 for pgsql-php@postgresql.org; Fri, 23 May 2003 10:13:39 +0800 (WST) (envelope-from chriskl@familyhealth.com.au) Received: from mariner (mariner.internal [192.168.0.101]) by houston.familyhealth.com.au (8.11.6p2/8.9.3) with SMTP id h4N2DB249660; Fri, 23 May 2003 10:13:11 +0800 (WST) Message-ID: <15ff01c320d0$e89bb1f0$6500a8c0@fhp.internal> From: "Christopher Kings-Lynne" To: "Raphael Bauduin" , "David Busby" Cc: References: <03bf01c31ca5$ac0e5d70$1100000a@busbydev> <20030518122859.GA25073@raphael> Subject: Re: Number of connections Date: Fri, 23 May 2003 10:13:30 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-scanner: scanned by Inflex 0.1.5c - (http://www.inflex.co.za/) X-Virus-Scanned: by amavisd-new X-Archive-Number: 200305/26 X-Sequence-Number: 2031 > 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? PHP will execute 'begin; rollback;' to your connection before passing it to another PHP process, guaranteeing that unclosed transactions won't leak. Chris