AW: AW: [HACKERS] TRANSACTIONS

Поиск
Список
Период
Сортировка
От Zeugswetter Andreas SB
Тема AW: AW: [HACKERS] TRANSACTIONS
Дата
Msg-id 219F68D65015D011A8E000006F8590C604AF7CF3@sdexcsrv1.f000.d0188.sd.spardat.at
обсуждение исходный текст
Ответы Re: AW: AW: [HACKERS] TRANSACTIONS  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
> > In this sense a commit is not partial. The commit should commit
> > all statements that were not in error.  
> 
> That interpretation eliminates an absolutely essential capability
> (all-or-none behavior) in favor of what strikes me as a very minor
> programming shortcut.

The all-or-none behavior is what you get if you simply do a rollback
on any error or warning. I don't see a special programming difficulty here.

> 
> > All other DB's behave in this way.
> 
> I find this hard to believe, and even harder to believe that it's
> mandated by the standard.  What you're essentially claiming is that
> everyone but us has nested transactions

They don't necessarily have nested tx, although some have.
All they provide is atomicity of single statements.

> (which'd be the only way to
> roll back a single failed statement inside a transaction) and that
> SQL92 requires nested transactions --- yet it never uses the 
> phrase nor
> makes the obvious step to allowing user-specified nested transactions.

Yes, but they say "statement" when they mention the all-or-none behavior,
not transaction.

Andreas


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Jeroen van Vianen
Дата:
Сообщение: Re: [HACKERS] Re: [PATCHES] Patch for more readable parse error messages
Следующее
От: Zeugswetter Andreas SB
Дата:
Сообщение: AW: AW: [HACKERS] TRANSACTIONS