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 38A853A201D for ; Fri, 14 Jan 2005 22:12:17 +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 23975-05 for ; Fri, 14 Jan 2005 22:12:09 +0000 (GMT) Received: from net2.micro-automation.com (net2.micro-automation.com [64.7.141.29]) by svr1.postgresql.org (Postfix) with SMTP id 9492C3A1D55 for ; Fri, 14 Jan 2005 22:12:10 +0000 (GMT) Received: (qmail 16532 invoked from network); 14 Jan 2005 22:11:38 -0000 Received: from dcdsl.ebox.com (HELO ?192.168.1.36?) (davec@64.7.143.116) by net2.micro-automation.com with SMTP; 14 Jan 2005 22:11:38 -0000 Message-ID: <41E843C0.2080005@fastcrypt.com> Date: Fri, 14 Jan 2005 17:12:16 -0500 From: Dave Cramer Reply-To: pg@fastcrypt.com Organization: Postgres International User-Agent: Mozilla Thunderbird 1.0 (X11/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Vadim Nasardinov Cc: pgsql-jdbc@postgresql.org Subject: Re: Weird behavior in transaction handling (Possible bug ?) References: <20050114161304.32600.qmail@web14223.mail.yahoo.com> <41E83BE1.2020909@opencloud.com> <200501141707.38043@vadim.nasardinov> In-Reply-To: <200501141707.38043@vadim.nasardinov> Content-Type: multipart/alternative; boundary="------------010600090800090807040304" X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.077 tagged_above=0 required=5 tests=AWL, HTML_40_50, HTML_MESSAGE, HTML_TITLE_EMPTY X-Spam-Level: X-Archive-Number: 200501/135 X-Sequence-Number: 12015 This is a multi-part message in MIME format. --------------010600090800090807040304 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Vadim Nasardinov wrote: >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. > > > I'd hope this was optional, I certainly don't want every statement wrapped in a savepoint. I see no point in either of these as the solution is simple... Don't ignore errors. However I wouldn't argue if the first was implemented. The second is questionable due to the extra code complexity and the overhead imposed. How many savepoints can the system handle ? What if I have a huge transaction ? Dave >---------------------------(end of broadcast)--------------------------- >TIP 3: if posting/reading through Usenet, please send an appropriate > subscribe-nomail command to majordomo@postgresql.org so that your > message can get through to the mailing list cleanly > > > > -- Dave Cramer http://www.postgresintl.com 519 939 0336 ICQ#14675561 --------------010600090800090807040304 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Vadim Nasardinov wrote:
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.

  
I'd hope this was optional, I certainly don't want every statement wrapped in a savepoint.

I see no point in either of these as the solution is simple... Don't ignore errors.
However I wouldn't argue if the first was implemented. The second is questionable due to the extra code complexity and the overhead imposed.
How many savepoints can the system handle ? What if I have a huge transaction ?

Dave
---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
      subscribe-nomail command to majordomo@postgresql.org so that your
      message can get through to the mailing list cleanly


  

-- 
Dave Cramer
http://www.postgresintl.com
519 939 0336
ICQ#14675561
--------------010600090800090807040304--