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 AC9533A1ADB for ; Fri, 14 Jan 2005 22:07:18 +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 23938-07 for ; Fri, 14 Jan 2005 22:07:13 +0000 (GMT) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by svr1.postgresql.org (Postfix) with ESMTP id 9E3F73A19DE for ; Fri, 14 Jan 2005 22:07:14 +0000 (GMT) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j0EM7EK9029531 for ; Fri, 14 Jan 2005 17:07:14 -0500 Received: from mail.boston.redhat.com (mail.boston.redhat.com [172.16.76.12]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j0EM7Er29689 for ; Fri, 14 Jan 2005 17:07:14 -0500 Received: from localhost.localdomain (sebastian-int.corp.redhat.com [172.16.52.221]) by mail.boston.redhat.com (8.12.8/8.12.8) with ESMTP id j0EM7BiS004586 for ; Fri, 14 Jan 2005 17:07:11 -0500 From: Vadim Nasardinov Organization: Red Hat / Westford To: pgsql-jdbc@postgresql.org Subject: Re: Weird behavior in transaction handling (Possible bug ?) Date: Fri, 14 Jan 2005 17:07:37 -0500 User-Agent: KMail/1.7 References: <20050114161304.32600.qmail@web14223.mail.yahoo.com> <41E83BE1.2020909@opencloud.com> In-Reply-To: <41E83BE1.2020909@opencloud.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200501141707.38043@vadim.nasardinov> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.05 tagged_above=0 required=5 tests=FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200501/134 X-Sequence-Number: 12014 On Friday 14 January 2005 16:38, Oliver Jowett wrote: > It might be worthwhile having commit() throw an exception if the > transaction did not actually commit, rather than only reporting > server-generated errors. What do people think? Sounds like a good idea. > It'd be possible to have optional "automatic savepoint wrapping" in the > driver, where every user query was transparently wrapped in > subtransaction. You might prefer to write the code to make the driver do > this, rather than change your application. Also seems like a useful feature at first blush.