Re: A transaction in transaction? Possible?

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: Andrei Bintintan <klodoma(at)ar-sd(dot)net>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: A transaction in transaction? Possible?
Date: 2004-11-09 13:55:01
Message-ID: 20041109135501.GA4099@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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/

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Giulio Orsero 2004-11-09 14:40:39 Drop all indexes of a table w/o knowing the index names
Previous Message marc ratun 2004-11-09 10:41:54 INSERT INTO VIEW - Replacement