From: Michael Fuhr <mike@fuhr.org>
To: Andrei Bintintan <klodoma@ar-sd.net>
Cc: pgsql-sql@postgresql.org
Subject: Re: A transaction in transaction? Possible?
Date: Tue, 9 Nov 2004 06:55:01 -0700
Message-ID: <20041109135501.GA4099@winnie.fuhr.org> (raw)
In-Reply-To: <014301c4c638$b33af430$0b00a8c0@forge>
References: <014301c4c638$b33af430$0b00a8c0@forge>
On Tue, Nov 09, 2004 at 10:47:06AM +0200, Andrei Bintintan wrote:
> Is it possible to have another transatction in a transaction???
PostgreSQL 8.0 (currently in beta) has savepoints, so you'll be
able to do this:
BEGIN;
UPDATE orders SET technikernotiz='51' WHERE id=16143;
SAVEPOINT foo;
UPDATE orders SET reklamationsdetail='51' WHERE id=16143;
ROLLBACK TO foo;
--
Michael Fuhr
http://www.fuhr.org/~mfuhr/
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: mike@fuhr.org, klodoma@ar-sd.net
Subject: Re: A transaction in transaction? Possible?
In-Reply-To: <20041109135501.GA4099@winnie.fuhr.org>
* 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