X-Original-To: pgsql-jdbc-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 032A69FB26F for ; Fri, 28 Jul 2006 13:24:44 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 61431-03 for ; Fri, 28 Jul 2006 13:24:30 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mail63.csoft.net (mail63.csoft.net [205.205.214.4]) by postgresql.org (Postfix) with SMTP id 241B49FA425 for ; Fri, 28 Jul 2006 13:23:59 -0300 (ADT) Received: (qmail 10757 invoked by uid 1112); 28 Jul 2006 16:23:56 -0000 Date: Fri, 28 Jul 2006 11:23:56 -0500 (EST) From: Kris Jurka X-X-Sender: books@leary2.csoft.net To: Mark Lewis cc: "Koth, Christian \(DWBI\)" , pgsql-jdbc@postgresql.org Subject: Re: Using ON_ERROR_ROLLBACK functionality in JDBC In-Reply-To: <1154102281.1634.576.camel@archimedes> Message-ID: References: <1154102281.1634.576.camel@archimedes> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.025 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200607/98 X-Sequence-Number: 15524 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