Re: undefined behaviour for sub-transactions?

From: Jaime Casanova <systemguards(at)gmail(dot)com>
To: Tyler MacDonald <tyler(at)yi(dot)org>
Cc: Andrew Sullivan <ajs(at)crankycanuck(dot)ca>, Tim Bunce <Tim(dot)Bunce(at)pobox(dot)com>, Jochen Wiedmann <jochen(dot)wiedmann(at)gmail(dot)com>, Paul DuBois <paul(at)snake(dot)net>, dbi-users(at)perl(dot)org, perl(at)lists(dot)mysql(dot)com, pgsql-general(at)postgresql(dot)org
Subject: Re: undefined behaviour for sub-transactions?
Date: 2005-11-30 21:44:28
Message-ID: c2d9e70e0511301344l5c186277h5080dc5d3e8ec531@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 11/30/05, Tyler MacDonald <tyler(at)yi(dot)org> wrote:
> Andrew Sullivan <ajs(at)crankycanuck(dot)ca> wrote:
> > The inconvenience I'll grant, but the non-standard claim I think
> > needs some justification. When the database encounters an error in a
> > transaction, it is supposed to report an error. An error in a
> > transaction causes the whole transaction to fail: that's what the
> > atomicity rule of ACID means, I think. I actually am sort of
> > unconvinced that SQLite's transactions are real ones -- I just did
> > some playing around with it, and it seems that any error allows you
> > to commit anyway. Certainly, MySQL's support of transactions is
> > occasionally pretty dodgy, unless you use the strict mode.
>
> Either way the end result is that some database drivers poison a
> transaction if there's any error, others are selective about which errors
> are fatal and which are not, and still others just don't care at all.
>

that is a mis-conception... a transaction *must* be atomic (all or nothing)...
the reason some databases act that bad is because they don't support
savepoints, and because postgres does it doesn't need that
awfulness...

--
regards,
Jaime Casanova
(DBA: DataBase Aniquilator ;)

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Michael Fuhr 2005-11-30 21:58:15 Re: undefined behaviour for sub-transactions?
Previous Message Tyler MacDonald 2005-11-30 21:31:30 Re: undefined behaviour for sub-transactions?