X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 4E25F3A1A7D for ; Fri, 14 Jan 2005 19:11:25 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 04560-10 for ; Fri, 14 Jan 2005 19:10:52 +0000 (GMT) Received: from mail.devisser-siderius.com (unknown [207.164.133.174]) by svr1.postgresql.org (Postfix) with ESMTP id E4AD63A1D30 for ; Fri, 14 Jan 2005 19:10:21 +0000 (GMT) Received: from [192.168.100.50] ([207.164.133.170]) by mail.devisser-siderius.com (8.11.6/8.9.3) with ESMTP id j0EJANs28812 for ; Fri, 14 Jan 2005 14:10:23 -0500 From: Jan de Visser To: pgsql-jdbc@postgresql.org Subject: Re: Weird behavior in transaction handling (Possible bug ?) -- commit fails silently Date: Fri, 14 Jan 2005 14:10:19 -0500 User-Agent: KMail/1.7.91 References: <20050114185115.37537.qmail@web14201.mail.yahoo.com> In-Reply-To: <20050114185115.37537.qmail@web14201.mail.yahoo.com> X-JDV: JAJAJAJAA MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200501141410.19681.jdevisser@digitalfairway.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200501/127 X-Sequence-Number: 12007 On January 14, 2005 01:51 pm, j.random.programmer wrote: [...] > I was simple catching the exception but not rolling > back since > I presumed the rest of the transaction would succeed > (and > commit() didn't complain). It's only after playing > around that I > realized that the transaction was failing because of > the earlier > error. > [...] > > So maybe, the database folks can do something about > this in version 8.0. Maybe you can also forward this > message > to the core postgres folks ? > I *strongly* disagree. As mentioned before, a transaction is supposed to be an *atomic* unit of work; either it succeeds completely or it's not executed at all. Consider the canonical example of a transaction: money being tranfered from one account to another. You don't want one update to be committed if the other failed. JdV!! -- -------------------------------------------------------------- Jan de Visser jdevisser@digitalfairway.com Baruk Khazad! Khazad ai-menu! --------------------------------------------------------------