X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id E2BE2D1B50B for ; Wed, 12 Nov 2003 21:18:42 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 69472-09 for ; Wed, 12 Nov 2003 17:18:13 -0400 (AST) Received: from smtp013.mail.yahoo.com (smtp013.mail.yahoo.com [216.136.173.57]) by svr1.postgresql.org (Postfix) with SMTP id AC677D1B522 for ; Wed, 12 Nov 2003 17:18:10 -0400 (AST) Received: from pcp01341166pcs.wilog301.pa.comcast.net (HELO europa.janwieck.net) (janwieck@68.80.245.191 with login) by smtp.mail.vip.sc5.yahoo.com with SMTP; 12 Nov 2003 21:18:12 -0000 Received: from Yahoo.com (ismtp.afilias.com [216.217.55.254]) (authenticated) by europa.janwieck.net (8.11.6/8.11.6) with ESMTP id hACLIAo01494; Wed, 12 Nov 2003 16:18:10 -0500 Message-ID: <3FB2A37A.6060201@Yahoo.com> Date: Wed, 12 Nov 2003 16:17:46 -0500 From: Jan Wieck User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Holger Jakobs Cc: sszabo@megazone.bigpanda.com, pgsql-sql@postgresql.org Subject: Re: transaction processing after error in statement References: <200311111625.hABGP4J11142@bg.bib.de> In-Reply-To: <200311111625.hABGP4J11142@bg.bib.de> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200311/142 X-Sequence-Number: 15957 Holger Jakobs wrote: > Calling a procedure is a statement as well, and it includes all other > procedures called from this procedure. So the statement level is always > the statements that were carried out directly in the transaction. If > anything within one statement fails, the statement was not carried out > and must not have any effect. It is not important whether the procedure > was fired by a trigger or called by another procedure. So you define the smalles unit being one single statement as issued by the client application and receiving one single returncode over the frontend/backend protocol. That's almost what people think of as subtransactions. I think if we ever implement them, we will have some session setting that lets the backend behave like that and your needs will be satisfied. Jan -- #======================================================================# # It's easier to get forgiveness for being wrong than for being right. # # Let's break this rule - forgive me. # #================================================== JanWieck@Yahoo.com #