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 D3923D1B1CF for ; Fri, 18 Jun 2004 13:33:19 -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 62655-08 for ; Fri, 18 Jun 2004 16:33:17 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id E5CFAD1B1BC for ; Fri, 18 Jun 2004 13:33:16 -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 i5IGWqHX021671; Fri, 18 Jun 2004 12:32:52 -0400 (EDT) To: Bruce Momjian Cc: Barry Lind , Alvaro Herrera , Simon Riggs , Patches Subject: Re: Nested transactions In-reply-to: <200406172201.i5HM1ns22285@candle.pha.pa.us> References: <200406172201.i5HM1ns22285@candle.pha.pa.us> Comments: In-reply-to Bruce Momjian message dated "Thu, 17 Jun 2004 18:01:49 -0400" Date: Fri, 18 Jun 2004 12:32:52 -0400 Message-ID: <21670.1087576372@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/240 X-Sequence-Number: 11463 Bruce Momjian writes: > Did I make a mistake by promoting subtransactions rather than > savepoints? No. We can implement savepoints on top of subtransactions, but not vice versa. AFAICS the savepoint syntax is just a shorthand for a constrained form of subtransaction --- essentially one where you can't explicitly commit a subtransaction, it's implicitly committed when you commit the parent. I don't see anything but syntactic sugar here ... regards, tom lane