From: Mikheev, Vadim <vmikheev@SECTORBASE.COM>
To: 'Cristi Petrescu-Prahova' <cristipp@lasting.ro>
To: pgsql-sql@postgresql.org
Subject: RE: how to continue a transaction after an error?
Date: Wed, 15 Nov 2000 11:11:27 -0800
Message-ID: <8F4C99C66D04D4118F580090272A7A234D3181@sectorbase1.sectorbase.com> (raw)
> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: vmikheev@SECTORBASE.COM, cristipp@lasting.ro
Subject: Re: how to continue a transaction after an error?
In-Reply-To: <8F4C99C66D04D4118F580090272A7A234D3181@sectorbase1.sectorbase.com>
References: <8F4C99C66D04D4118F580090272A7A234D3181@sectorbase1.sectorbase.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox