Re: in failed sql transaction

From: Karsten Hilbert <Karsten(dot)Hilbert(at)gmx(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: in failed sql transaction
Date: 2006-09-25 10:04:57
Message-ID: 20060925100457.GB5461@merkur.hilbert.loc
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, Sep 25, 2006 at 03:16:07PM +0530, Gurjeet Singh wrote:

> >All other databases I used up to now just ignore the statement violating
> >the
> >> constraint, but leave the transaction intact.
> >
> >Which databases behave that way? Does COMMIT succeed even if some
> >statements failed?
>
> Oracle, for one, behaves that way... Yes, COMMIT does succeed even if some
> statement(s) threw errors.
>
> Probably, the 'other' DBs have implemented that by an implicit savepoint
> just before a command, and rollong back to it automatically, if the
> transaction fails.
>
> This is quite a desirable feature...

Why bother with transactions at all if autocommit is enabled ??

Karsten
--
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Alban Hertroys 2006-09-25 11:43:28 Re: in failed sql transaction
Previous Message Bo Lorentsen 2006-09-25 10:01:36 Re: Replication and PITR