X-Original-To: pgsql-patches-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 9DDF0D1B267 for ; Wed, 16 Jun 2004 19:45:54 -0300 (ADT) 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 81381-09 for ; Wed, 16 Jun 2004 22:45:39 +0000 (GMT) Received: from cmailm3.svr.pol.co.uk (cmailm3.svr.pol.co.uk [195.92.193.19]) by svr1.postgresql.org (Postfix) with ESMTP id 71F3CD1B1BC for ; Wed, 16 Jun 2004 19:45:34 -0300 (ADT) Received: from modem-2183.lemur.dialup.pol.co.uk ([217.135.136.135] helo=[192.168.0.100]) by cmailm3.svr.pol.co.uk with esmtp (Exim 4.14) id 1BajA0-0005mx-Hi; Wed, 16 Jun 2004 23:45:36 +0100 Subject: Re: Nested transactions From: Simon Riggs To: Alvaro Herrera Cc: Patches In-Reply-To: <20040608222356.GC13820@dcc.uchile.cl> References: <20040608222356.GC13820@dcc.uchile.cl> Content-Type: text/plain Organization: 2nd Quadrant Message-Id: <1087425935.12015.1154.camel@stromboli> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 (1.4.5-7) Date: Wed, 16 Jun 2004 23:45:36 +0100 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.1 tagged_above=0.0 required=5.0 tests=RCVD_IN_SORBS X-Spam-Level: X-Archive-Number: 200406/214 X-Sequence-Number: 11437 On Tue, 2004-06-08 at 23:23, Alvaro Herrera wrote: > Hackers, > > Here is the latest installment of the nested transactions patch. > > What's in the current patch: > First of all, thank you for all your helpful comments recently. The patch looks impressively technical, but overall I'm not exactly sure what it does...I guess I'm just not clear why I would want it, except as the main technical pre-work to later syntax changes. I'm sure some short explanations would clear that up for me very quickly... :) The Todo items were: -Allow savepoints / nested transactions -Use nested transactions to prevent syntax errors from aborting a transaction both of which I thought I understood: The first one provides the SQL commands SAVEPOINT and ROLLBACK TO SAVEPOINT as with Oracle/DB2, and also now ANSI SQL if I recall... The second one again provides Oracle/DB2 support by conforming to their interpretation of the ANSI transactional semantics definition. i.e. one statement failure doesn't roll back the transaction, just the statement that failed. Being able to issue multiple BEGIN/END pairs isn't really (to me) the same thing as the above, nor do I understand why I'd ever want to do that - especially down to N levels.... Perhaps what I've just asked about is trivial icing on the cake you've just baked, so forgive me, but could you explain the outward form of your work and what that gives me? (or at least...what you think it gives you...which I accept may be different) Best regards, Simon Riggs