Re: A transaction in transaction? Possible?

Поиск
Список
Период
Сортировка
От Michael Fuhr
Тема Re: A transaction in transaction? Possible?
Дата
Msg-id 20041109135501.GA4099@winnie.fuhr.org
обсуждение исходный текст
Ответ на A transaction in transaction? Possible?  ("Andrei Bintintan" <klodoma@ar-sd.net>)
Список 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/


В списке pgsql-sql по дате отправления:

Предыдущее
От: "marc ratun"
Дата:
Сообщение: INSERT INTO VIEW - Replacement
Следующее
От: Giulio Orsero
Дата:
Сообщение: Drop all indexes of a table w/o knowing the index names