Re: Moving to postgresql and some ignorant questions

Поиск
Список
Период
Сортировка
От Phoenix Kiula
Тема Re: Moving to postgresql and some ignorant questions
Дата
Msg-id e373d31e0708141138w1efe1710p30bd221f469b0e8a@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Moving to postgresql and some ignorant questions  (Thomas Kellerer <spam_eater@gmx.net>)
Список pgsql-general
> You could do this with savepoints which are a kind of sub-transaction inside a
> "bigger" transaction.
>
> e.g.:
> BEGIN TRANSACTION;
>
> SAVEPOINT sp1;
> UPDATE1;
> IF (failed) rollback to savepoint sp1;
>
> SAVEPOINT sp1;
> UPDATE2;
> IF (failed) rollback to savepoint sp2;



Thanks Thomas, this is a great feature even if I am not looking for it
right now, I bet I can use it at some point!

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