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 9D6B9D1B19C for ; Fri, 18 Jun 2004 19:48:02 -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 47279-08 for ; Fri, 18 Jun 2004 22:48:00 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 7C8C9D1B188 for ; Fri, 18 Jun 2004 19:47:57 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.11/8.12.11) with ESMTP id i5IMlBNA004214; Fri, 18 Jun 2004 18:47:11 -0400 (EDT) To: Barry Lind Cc: Alvaro Herrera , Simon Riggs , Patches Subject: Re: Nested transactions In-reply-to: <40D24FAE.3030903@xythos.com> References: <20040608222356.GC13820@dcc.uchile.cl> <1087425935.12015.1154.camel@stromboli> <20040617014359.GA5925@dcc.uchile.cl> <40D24FAE.3030903@xythos.com> Comments: In-reply-to Barry Lind message dated "Thu, 17 Jun 2004 19:13:02 -0700" Date: Fri, 18 Jun 2004 18:47:10 -0400 Message-ID: <4213.1087598830@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200406/254 X-Sequence-Number: 11477 Barry Lind writes: > I like the functionality of nested transactions, I just think that there > needs to be different commands other than BEGIN/COMMIT to work with > them. So that there is no possiblity for misunderstanding what COMMIT > really means. There's something to be said for that view. Another thing in its favor is that if we choose names like SUBBEGIN and SUBCOMMIT, then we get rid of the syntax conflict with plpgsql's BEGIN/END. A function cannot legally issue a true COMMIT, as it has to be inside an outer transaction --- so it only needs to be able to say SUBBEGIN and SUBCOMMIT. I'm not at all wedded to those particular names, of course. Just thinking that it'd simplify life if they were spelled differently than BEGIN and END. regards, tom lane