RE: Unanswered questions about Postgre

Поиск
Список
Период
Сортировка
От Mikheev, Vadim
Тема RE: Unanswered questions about Postgre
Дата
Msg-id 8F4C99C66D04D4118F580090272A7A234D31BB@sectorbase1.sectorbase.com
обсуждение исходный текст
Ответ на Unanswered questions about Postgre  (Joe Kislo <postgre@athenium.com>)
Ответы Re: Unanswered questions about Postgre
Список 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 по дате отправления:

Предыдущее
От: "Joel Burton"
Дата:
Сообщение: Re: Table & Column descriptions
Следующее
От: Bruce Guenter
Дата:
Сообщение: Re: Can PostGreSQL handle 100 user database?