Re: Moving to postgresql and some ignorant questions - Mailing list pgsql-general

From Phoenix Kiula
Subject Re: Moving to postgresql and some ignorant questions
Date
Msg-id e373d31e0708141138w1efe1710p30bd221f469b0e8a@mail.gmail.com
Whole thread Raw
In response to Re: Moving to postgresql and some ignorant questions  (Thomas Kellerer <spam_eater@gmx.net>)
List 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 by date:

Previous
From: Kenneth Downs
Date:
Subject: Re: MVCC cons
Next
From: "madhtr"
Date:
Subject: pqlib in c++: PQconnectStart PQconnectPoll