Skip site navigation (1) Skip section navigation (2)

Re: Using ON_ERROR_ROLLBACK functionality in JDBC

From: Kris Jurka <books(at)ejurka(dot)com>
To: Mark Lewis <mark(dot)lewis(at)mir3(dot)com>
Cc: "Koth, Christian \(DWBI\)" <Christian(dot)Koth(at)smiths-heimann(dot)com>, pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Using ON_ERROR_ROLLBACK functionality in JDBC
Date: 2006-07-28 16:23:56
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-jdbc

On Fri, 28 Jul 2006, Mark Lewis wrote:

> Does the current savepoint implementation in the driver require a
> separate round-trip?

Yes.  Creating, rolling back to, or releasing a savepoint each currently 
make a server round-trip.  If you're suggesting queueing these up so that 
it sends these with queries instead of alone, I think that's something the 
driver could do if it was creating savepoints itself, but would be tougher 
to do for user savepoints.  For user savepoints I think you need to get 
feedback to the caller immediately upon command execution rather than with 
a later query.  Consider something like trying to release an invalid 
savepoint.  You need to tell the user immediately.

Kris Jurka

In response to

pgsql-jdbc by date

Next:From: Mike MorrisDate: 2006-07-29 05:08:34
Subject: literal value in the select fieldlist returns not the string, but a java String object
Previous:From: Kris JurkaDate: 2006-07-28 16:17:54
Subject: Re: Using ON_ERROR_ROLLBACK functionality in JDBC

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group