Re: BEGIN inside transaction should be an error

Поиск
Список
Период
Сортировка
От Albe Laurenz
Тема Re: BEGIN inside transaction should be an error
Дата
Msg-id 52EF20B2E3209443BC37736D00C3C1380854B536@EXADV1.host.magwien.gv.at
обсуждение исходный текст
Ответ на BEGIN inside transaction should be an error  (Dennis Bjorklund <db@zigo.dhs.org>)
Список pgsql-hackers
Tom Lane wrote:
> Dennis Bjorklund <db@zigo.dhs.org> writes:
>> Could we make BEGIN fail when we already are in a transaction?
>
> We could, but it'd probably break about as many apps as it fixed.

I'd say that a program that issues BEGIN inside a transaction is
already broken, if only by design.

I think that the benefit of forced consistency in your transaction
handling
and standard compliance outweighs the disadvantage of breaking
compatibility.

Yours,
Laurenz Albe


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

Предыдущее
От: "Jaime Casanova"
Дата:
Сообщение: Re: BEGIN inside transaction should be an error
Следующее
От: Mario Weilguni
Дата:
Сообщение: Re: BEGIN inside transaction should be an error