RE: Unanswered questions about Postgre - Mailing list pgsql-general

From Mikheev, Vadim
Subject RE: Unanswered questions about Postgre
Date
Msg-id 8F4C99C66D04D4118F580090272A7A234D31BB@sectorbase1.sectorbase.com
Whole thread Raw
In response to Unanswered questions about Postgre  (Joe Kislo <postgre@athenium.com>)
Responses Re: Unanswered questions about Postgre  (Mike Castle <dalgoda@ix.netcom.com>)
List pgsql-general
> > That is what transactions are for. If any errors occur, then the
> > transacction is aborted. You are supposed to use
> > transactions when you want either everything to occur
> > (the whole transaction), or nothing, if an error occurs.
>
>     Yes.  There are certainly times when a transaction needs to be
> ABORTed.  However, there are many reasons why the database should not
> abort a transaction if it does not need to.  There is obviously no
> reason why a transaction needs to be aborted for syntax errors.  There
> is obviously no reason why a transaction needs to be aborted for say,
> trying to insert a duplicate primary key.  The -insert- can
> fail, report it as such, and the application can determine if a rollback
> is nessasary. If you don't believe me, here's two fully SQL-92
> compliant databases, Oracle and interbase, which do not exhibit this
behavior:

Oracle & Interbase have savepoints. Hopefully PG will also have them in 7.2

Vadim

pgsql-general by date:

Previous
From: "Joel Burton"
Date:
Subject: Re: Table & Column descriptions
Next
From: Bruce Guenter
Date:
Subject: Re: Can PostGreSQL handle 100 user database?