pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jan Wieck <JanWieck@Yahoo.com>
To: Holger Jakobs <holger@jakobs.com>
Cc: sszabo@megazone.bigpanda.com
Cc: pgsql-sql@postgresql.org
Subject: Re: transaction processing after error in statement
Date: Wed, 12 Nov 2003 16:17:46 -0500
Message-ID: <3FB2A37A.6060201@Yahoo.com> (raw)
In-Reply-To: <200311111625.hABGP4J11142@bg.bib.de>
References: <200311111625.hABGP4J11142@bg.bib.de>

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 #




view thread (12+ messages)

Message-ID: <3FB2A37A.6060201@Yahoo.com>
Permalink:  ../3FB2A37A.6060201@Yahoo.com/
Also on:    postgresql.org/message-id/3FB2A37A.6060201@Yahoo.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: JanWieck@Yahoo.com, holger@jakobs.com, sszabo@megazone.bigpanda.com
  Subject: Re: transaction processing after error in statement
  In-Reply-To: <3FB2A37A.6060201@Yahoo.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox