pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dave Cramer <pg@fastcrypt.com>
To: Vadim Nasardinov <vadimn@redhat.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Weird behavior in transaction handling (Possible bug ?)
Date: Fri, 14 Jan 2005 17:12:16 -0500
Message-ID: <41E843C0.2080005@fastcrypt.com> (raw)
In-Reply-To: <200501141707.38043@vadim.nasardinov>
References: <20050114161304.32600.qmail@web14223.mail.yahoo.com>
	<41E83BE1.2020909@opencloud.com>
	<200501141707.38043@vadim.nasardinov>



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

view thread (22+ messages)  latest in thread

Message-ID: <41E843C0.2080005@fastcrypt.com>
Permalink:  ../41E843C0.2080005@fastcrypt.com/
Also on:    postgresql.org/message-id/41E843C0.2080005@fastcrypt.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: pg@fastcrypt.com, vadimn@redhat.com
  Subject: Re: Weird behavior in transaction handling (Possible bug ?)
  In-Reply-To: <41E843C0.2080005@fastcrypt.com>
  References: <20050114161304.32600.qmail@web14223.mail.yahoo.com> <41E83BE1.2020909@opencloud.com> <200501141707.38043@vadim.nasardinov> <41E843C0.2080005@fastcrypt.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox