Re: Constraint problem - Mailing list pgsql-general

From Tom Lane
Subject Re: Constraint problem
Date
Msg-id 10657.1111515847@sss.pgh.pa.us
Whole thread Raw
In response to Re: Constraint problem  (Sean Davis <sdavis2@mail.nih.gov>)
List pgsql-general
Sean Davis <sdavis2@mail.nih.gov> writes:
> On Mar 22, 2005, at 7:26 AM, Szmutku Zolt�n wrote:
>> I would like to: server ignore�the bad statements (return false)�and
>> after I call rollback or commit manually....possible ?

> Within a transaction, if one statement fails, all changes will be
> rolled back.  If you want to commit each statement that works, you can
> commit (or rollback) after each statement.

In PG 8.0, you can recover from errors without having to commit the whole
transaction by using savepoints.  There isn't any way to do that pre-8.0.

            regards, tom lane

pgsql-general by date:

Previous
From: Greg Stark
Date:
Subject: Changing constraints to deferrable
Next
From: Peter Eisentraut
Date:
Subject: Re: Question about function body checking and 8.1