Re: Transaction Questions

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: rkut(at)intelerad(dot)com
Cc: pgsql-novice(at)postgresql(dot)org, Mathew Kanner <Mathew(dot)Kanner(at)intelerad(dot)com>
Subject: Re: Transaction Questions
Date: 2006-02-24 16:14:56
Message-ID: 3743.1140797696@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

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

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Richard Kut 2006-02-24 16:47:05 Re: Transaction Questions
Previous Message Richard Kut 2006-02-24 14:57:06 Transaction Questions