Re: BEGIN inside transaction should be an error - Mailing list pgsql-hackers

From Albe Laurenz
Subject Re: BEGIN inside transaction should be an error
Date
Msg-id 52EF20B2E3209443BC37736D00C3C1380854B536@EXADV1.host.magwien.gv.at
Whole thread Raw
In response to BEGIN inside transaction should be an error  (Dennis Bjorklund <db@zigo.dhs.org>)
List 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 by date:

Previous
From: "Jaime Casanova"
Date:
Subject: Re: BEGIN inside transaction should be an error
Next
From: Mario Weilguni
Date:
Subject: Re: BEGIN inside transaction should be an error