Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id B99F79FBFB0 for ; Thu, 1 Mar 2007 13:28:16 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-new, port 10024) with ESMTP id 03274-08-2 for ; Thu, 1 Mar 2007 13:28:12 -0400 (AST) X-Greylist: delayed 00:29:27.562193 by SQLgrey-1.7.4 Received: from hermes.zoidtechnologies.com (unknown [204.11.32.103]) by postgresql.org (Postfix) with ESMTP id 6BA0D9FBFC7 for ; Thu, 1 Mar 2007 13:28:12 -0400 (AST) Received: from localhost (localhost [127.0.0.1]) by hermes.zoidtechnologies.com (Postfix) with ESMTP id B344913C91D; Thu, 1 Mar 2007 11:58:43 -0500 (EST) X-Virus-Scanned: amavisd-new at dataslab.com Received: from hermes.zoidtechnologies.com ([127.0.0.1]) by localhost (test1.dataslab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dvBMjlFwYU0R; Thu, 1 Mar 2007 11:58:39 -0500 (EST) Received: from toast.zoidtechnologies.com (66-169-30-131.dhcp.gnvl.sc.charter.com [66.169.30.131]) by hermes.zoidtechnologies.com (Postfix) with ESMTP id 9FC3913C91B; Thu, 1 Mar 2007 11:58:39 -0500 (EST) Received: from dionysus.zoidtechnologies.com (dionysus.zoidtechnologies.com [192.168.2.9]) by toast.zoidtechnologies.com (Postfix) with ESMTP id DDFFB206D63; Thu, 1 Mar 2007 11:58:39 -0500 (EST) From: Jeff MacDonald Reply-To: Jeff MacDonald Organization: Zoid Technologies, LLC To: pgsql-php@postgresql.org Subject: Re: transactions from PHP - double COMMIT required? Date: Thu, 1 Mar 2007 11:58:39 -0500 User-Agent: KMail/1.9.5 Cc: mikie , Jeff MacDonald References: <45E6E75F.4020408@bugs.unl.edu.ar> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200703011158.39438.jam@zoidtechnologies.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.136 tagged_above=0 required=5 tests=BAYES_50, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200703/16 X-Sequence-Number: 3728 On Thursday 01 March 2007 11:42 am, mikie wrote: [..snipped..] > Thats exactly what I was thinking, too. But PHP does things in some > other way, I guess. > I am sending an entire sql transaction block to the PHP pg_query > command, so it starts with BEGIN and ends with COMMIT. Then I still > have to execute another pg_query with "commit;" only - thats why I am > asking here if maybe someone know what the problem is. > greetings, I don't know if this will solve your problem or not, but on my machines, "autoCommit" is set to "true" by default (using PEAR::DB).. so when I want to do an operation that I expect to have to rollback, I turn *off* autocommit, do my begin, run my queries, then a commit or rollback at the end, followed by restoring autoCommit. it sounds to me like that is what is happening. regards, -- Jeff MacDonald, Zoid Technologies