Richard Kut <rkut(at)intelerad(dot)com> writes:
> and that works as expected. However, if I get an error within the transaction
> anywhere after the SAVEPOINT command, then the entire transaction fails, and
> any changes made prior to the SAVEPOINT are rolled back.
Only because you deliberately told the system to roll back the entire
transaction. You want to use ROLLBACK TO SAVEPOINT instead.
regards, tom lane
In response to
pgsql-novice by date
|Next:||From: Richard Kut||Date: 2006-02-24 16:47:05|
|Subject: Re: Transaction Questions|
|Previous:||From: Richard Kut||Date: 2006-02-24 14:57:06|
|Subject: Transaction Questions|