Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 243CA633B03 for ; Fri, 29 May 2009 18:10:11 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 30153-03 for ; Fri, 29 May 2009 18:10:09 -0300 (ADT) X-Greylist: delayed 00:06:40.864074 by SQLgrey-1.7.6 Received: from web36908.mail.mud.yahoo.com (web36908.mail.mud.yahoo.com [209.191.85.76]) by mail.postgresql.org (Postfix) with SMTP id 605F86336E2 for ; Fri, 29 May 2009 18:10:09 -0300 (ADT) Received: (qmail 58990 invoked by uid 60001); 29 May 2009 21:03:26 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1243631006; bh=A619CxRb65UXeDXK7zpmu+KhvsAnjwA59f7Xd6IzN2Y=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=yXrjxrBdFW7OX1NIdjPo1Hp8Sktz1F+fyZU5M5ANXLQJ5wYS2dC+CyvkidqQYMA5c7ATC/u0J+mdPf5MWnASbalXv68jO8wqQQB7oE3FH+jCi3/vmWAFlE7L8V6oz4MezaSl9BbaXRRI18KaiDVLuVxhQmQNlmC3iRPQlwVi5uc= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=WzukjcHeLhC8ZPEmH/QspgqqeqSjPe2K/IDxXpO1//X4P0Q6rLyp5YHtECf7qbm/6dZq7JFsQK8vAJsNbXvK2TWVI1p++1bzCnzBr3wFjiRvgjWj3LjFW4/XRo1P7/h0sfv8Uy4zrveu4rsmTsJpTASSLdq+4+tzVkHL3q1DH2k=; Message-ID: <534497.58144.qm@web36908.mail.mud.yahoo.com> X-YMail-OSG: 0umxjQMVM1lOeyD3GJfg8Ndpr8v_1GM0kLlxh6wtoz3TsXemg29fBrCQise7w4MfylSLH75rl5FhMY2BhW9wbGgHGNcZlOQgxVBJnHbwAw2o1JyjQHgx6JzJAVJkqh23qsbghKY6xPUocHPfApwTULNPvBQn3Bqf_.7fTyyoZhXZ8Gnr_Nfnqq2bVDxXA7.Jc6Of1AvB7tKP_8KItjIsdYjh7BAhMo.lexv.7hwoIgu_7Q5ZaE7uZw51OOEYuTfD01g1YuXMMnhALhei2sO6ENNz4MpMFrsNpb8fR38j71fERt3m0qI2z1bP9m3Ll86PLqy3 Received: from [167.1.146.100] by web36908.mail.mud.yahoo.com via HTTP; Fri, 29 May 2009 14:03:26 PDT X-Mailer: YahooMailClassic/5.3.9 YahooMailWebService/0.7.289.10 Date: Fri, 29 May 2009 14:03:26 -0700 (PDT) From: Saravana Kumar Subject: 25P02 on connection.rollback(savePoint) - ERROR: current transaction is aborted, commands ignored until end of transaction block To: pgsql-jdbc@postgresql.org MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="0-228464892-1243631006=:58144" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.001 tagged_above=0 required=5 tests=HTML_MESSAGE=0.001 X-Spam-Level: X-Archive-Number: 200905/113 X-Sequence-Number: 19663 --0-228464892-1243631006=:58144 Content-Type: multipart/alternative; boundary="0-1626924410-1243631006=:58144" --0-1626924410-1243631006=:58144 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Hi, =A0 We are currently using Oracle at this time and we are extending postgres su= pport for our application.=A0 In few parts of application, when an unique c= onstraint violation occurs, we ignore and move on (per design) and in that = scenario, I am running into 25P02 error on statement subsequent to unique c= onstraint violation.=20 =A0 I read the postgres archives and as suggested I tried adding a savepoint be= fore the statement which might possible throw unique constraint violation a= nd on exception I am doing rollback(savePoint).=A0=20 =A0 Unfortunately I can running into the same exception on 25P02 on executing r= ollback(savePoint). =A0 I have included the sample code for reference.=A0 Am I missing something, o= r do I need to change any setting with postgres database ?=A0 Any suggestio= ns are welcome. =A0 =A0 Thanks, Saravana Telapolu =A0 =A0=0A=0A=0A --0-1626924410-1243631006=:58144 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
Hi,
 
We are currently using Oracle at this time and we are extending postgr= es support for our application.  In few parts of application, when an = unique constraint violation occurs, we ignore and move on (per design) and = in that scenario, I am running into 25P02 error on statement subsequent to = unique constraint violation.
 
I read the postgres archives and as suggested I tried adding a savepoi= nt before the statement which might possible throw unique constraint violat= ion and on exception I am doing rollback(savePoint). 
 
Unfortunately I can running into the same exception on 25P02 on execut= ing rollback(savePoint).
 
I have included the sample code for reference.  Am I missing some= thing, or do I need to change any setting with postgres database ?  An= y suggestions are welcome.
 
 
Thanks,
Saravana Telapolu
 
 

=0A=0A=0A=0A --0-1626924410-1243631006=:58144-- --0-228464892-1243631006=:58144 Content-Type: text/plain; name="SampleCode.txt" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="SampleCode.txt" DQoNCiAgICBDb25uZWN0aW9uIGNvbiA9IG51bGw7DQogICAgU2F2ZXBvaW50 IHNhdmVQb2ludD1udWxsOw0KICAgIHRyeSB7DQoJICAgIGNvbiA9IERBTy5n ZXREQkNvbm5lY3Rpb24oKTsNCgkgICAgVGVzdERBTyB0ZXN0REFPID0gbmV3 IFRlc3REQU8gKGNvbik7DQoJICAgIHRlc3REQU8uaW5zZXJ0KCJQS0VZX1RF U1RfMDEiLCAiRGVzY3JpcHRpb24iLCAuLi4pOw0KCSAgICB0ZXN0REFPLmlu c2VydCgiUEtFWV9URVNUXzAyIiwgIkRlc2NyaXB0aW9uIiwgLi4uKTsNCgkg ICAgc2F2ZVBvaW50ID0gY29uLnNldFNhdmVwb2ludCgiU2F2ZVBvaW50X1Rl c3QiKTsNCgkgICAgdHJ5IHsNCgkgICAgCXRlc3REQU8uaW5zZXJ0KCJQS0VZ X1RFU1RfMDIiLCAiRGVzY3JpcHRpb24iLCAuLi4pOw0K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