X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 76FD311F6CD8 for ; Sun, 2 Apr 2006 03:41:59 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 10276-09 for ; Sun, 2 Apr 2006 03:41:57 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [131.203.101.226]) by postgresql.org (Postfix) with ESMTP id 19A0E11F6CBC for ; Sun, 2 Apr 2006 03:41:54 -0300 (ADT) Received: from 203-79-104-60.cable.paradise.net.nz ([203.79.104.60] helo=[192.168.0.20]) by yass.opencloud.co.nz with asmtp (TLS-1.0:DHE_RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1FPwHX-00082I-VB; Sun, 02 Apr 2006 18:41:52 +1200 Message-ID: <442F722E.1090900@opencloud.com> Date: Sun, 02 Apr 2006 18:41:50 +1200 From: Oliver Jowett User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051009) X-Accept-Language: en-us, en MIME-Version: 1.0 To: babu_moshay CC: pgsql-jdbc@postgresql.org Subject: Re: 25P02, current transaction is aborted, commands ignored References: <200604020407.JAA21169@WS0005.indiatimes.com> In-Reply-To: <200604020407.JAA21169@WS0005.indiatimes.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.112 required=5 tests=[AWL=0.112] X-Spam-Score: 0.112 X-Spam-Level: X-Archive-Number: 200604/4 X-Sequence-Number: 14938 babu_moshay wrote: > In my opinion, if there are reasons to throw 25P02 and abort transaction unilaterally, then there are also good reasons not to abort it and let programmer take the decision. A switching mechanism would have been ideal. Create a savepoint before the possibly-failing query. If the query fails in the way you were expecting, roll back to the savepoint and continue. -O