RE: how to continue a transaction after an error?

From: "Mikheev, Vadim" <vmikheev(at)SECTORBASE(dot)COM>
To: "'Cristi Petrescu-Prahova'" <cristipp(at)lasting(dot)ro>, pgsql-sql(at)postgresql(dot)org
Subject: RE: how to continue a transaction after an error?
Date: 2000-11-15 19:11:27
Message-ID: 8F4C99C66D04D4118F580090272A7A234D3181@sectorbase1.sectorbase.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

> I would like to insert a bunch of rows in a table in a
> transaction. Some of
> the insertions will fail due to constraints violation. When
> this happens,
> Postgres automatically ends the transaction and rolls back
> all the previous
> inserts. I would like to continue the transaction and issue the
> commit/rollback command myself.
>
> How to do it?
> Is there any setting I am missing?
> Is it possible at all?

Hopefully, we'll have savepoints in 7.2

Vadim

Browse pgsql-sql by date

  From Date Subject
Next Message Peter Eisentraut 2000-11-15 22:33:18 Re: Index problem
Previous Message Tom Lane 2000-11-15 18:19:45 Re: Index problem