Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1egQtP-0002Uk-Vi for pgsql-general@arkaria.postgresql.org; Tue, 30 Jan 2018 08:03:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1egQtP-0006uI-2e for pgsql-general@arkaria.postgresql.org; Tue, 30 Jan 2018 08:03:47 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1egQtO-0006u8-OG for pgsql-general@lists.postgresql.org; Tue, 30 Jan 2018 08:03:46 +0000 Received: from mx1.mailbox.org ([80.241.60.212]) by makus.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1egQtL-00077J-KH for pgsql-general@postgresql.org; Tue, 30 Jan 2018 08:03:45 +0000 Received: from smtp1.mailbox.org (smtp1.mailbox.org [80.241.60.240]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.mailbox.org (Postfix) with ESMTPS id DD0B642A71; Tue, 30 Jan 2018 09:03:39 +0100 (CET) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp1.mailbox.org ([80.241.60.240]) by spamfilter01.heinlein-hosting.de (spamfilter01.heinlein-hosting.de [80.241.56.115]) (amavisd-new, port 10030) with ESMTP id IjYZUCfB5KqF; Tue, 30 Jan 2018 09:03:32 +0100 (CET) Message-ID: <1517299398.2517.4.camel@cybertec.at> Subject: Re: Information on savepoint requirement within transctions From: Laurenz Albe To: "David G. Johnston" , Robert Zenz Cc: "pgsql-general@postgresql.org" Date: Tue, 30 Jan 2018 09:03:18 +0100 In-Reply-To: References: <5A6B3F78.6030908@sibvisions.com> <5A6B4A12.9000002@sibvisions.com> <5A6EDD41.70005@sibvisions.com> <5A6F28A7.5080800@sibvisions.com> Organization: Cybertec Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk David G. Johnston wrote: > > > It may be worth updating the docs here... > > > So, my first pass at this. I'm probably going a bit outside what would normally be covered in the SQL > Command section but it does feel right at first blush. > > Also attached; not compiled. > > As a bug fix I've updated the description of "COMMIT" here since it can cause a ROLLBACK to be issued and that isn't documented. > > "(pseudo) sub-transaction" seemed like a reasonable choice of terminology to introduce rather than just "mark". > Having it mentioned in context in the BEGIN docs, instead of just a "see also", should aid in understanding > how the whole transaction system fits together. The advanced features of the tutorial cover this to some degree > (I didn't re-read it prior to writing this up) but I'm inclined to believe people wanting to understand transactions, > lacking a top-level chapter on the topic, will know of BEGIN and start their discovery there. I think that it is a good idea to explain the behavior of aborted transactions. Shouldn't that go to the hackers list though? I don't like the term "pseudo sub-transaction". What's pseudo about it? > + > + > + psql makes use of savepoints to implment its > + ON_ERROR_ROLLBACK behavior. > + s/implment/implement/ Yours, Laurenz Albe