Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id A457D9FB5A4 for ; Thu, 1 Mar 2007 08:47:31 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-new, port 10024) with ESMTP id 11654-04 for ; Thu, 1 Mar 2007 08:46:59 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from bugs.unl.edu.ar (bugs.unl.edu.ar [168.96.132.208]) by postgresql.org (Postfix) with ESMTP id C5FCE9FBC0E for ; Thu, 1 Mar 2007 08:47:25 -0400 (AST) Received: from localhost (localhost [127.0.0.1]) by bugs.unl.edu.ar (Postfix) with ESMTP id B57A76F91F; Thu, 1 Mar 2007 09:47:23 -0300 (ART) Received: from bugs.unl.edu.ar ([127.0.0.1]) by localhost (bugs.unl.edu.ar [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2DDb1Iwjj3E1; Thu, 1 Mar 2007 09:47:23 -0300 (ART) Received: by bugs.unl.edu.ar (Postfix, from userid 1000) id 058E16F91E; Thu, 1 Mar 2007 09:47:23 -0300 (ART) Received: from localhost (localhost [127.0.0.1]) by bugs.unl.edu.ar (Postfix) with ESMTP id F3BC0FF07; Thu, 1 Mar 2007 09:47:22 -0300 (ART) Date: Thu, 1 Mar 2007 09:47:22 -0300 (ART) From: Martin Marques To: mikie cc: pgsql-php@postgresql.org Subject: Re: transactions from PHP - double COMMIT required? In-Reply-To: Message-ID: References: <20070301131523.fgfm83nb9y2kgo4c@imp3.uta.fi> MIME-Version: 1.0 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.005 tagged_above=0 required=5 tests=AWL, BAYES_50 X-Spam-Level: Content-Type: TEXT/PLAIN; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE X-Archive-Number: 200703/6 X-Sequence-Number: 3718 On Thu, 1 Mar 2007, mikie wrote: > > Now, when I try to do some inserts within my transaction I don't know if > they will fail or not. Eitherway I am closing my transaction with the > COMMIT; command - is that correct way ? Yes. -- 21:50:04 up 2 days, 9:07, 0 users, load average: 0.92, 0.37, 0.18 --------------------------------------------------------- Lic. Mart=EDn Marqu=E9s | SELECT 'mmarques' || Centro de Telem=E1tica | '@' || 'unl.edu.ar'; Universidad Nacional | DBA, Programador, del Litoral | Administrador ---------------------------------------------------------=