Re: BEGIN inside transaction should be an error

From: "Albe Laurenz" <all(at)adv(dot)magwien(dot)gv(dot)at>
To: <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: BEGIN inside transaction should be an error
Date: 2006-05-10 07:33:16
Message-ID: 52EF20B2E3209443BC37736D00C3C1380854B536@EXADV1.host.magwien.gv.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom Lane wrote:
> Dennis Bjorklund <db(at)zigo(dot)dhs(dot)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

Browse pgsql-hackers by date

  From Date Subject
Next Message Mario Weilguni 2006-05-10 07:41:46 Re: BEGIN inside transaction should be an error
Previous Message Christopher Kings-Lynne 2006-05-10 06:26:52 Re: BEGIN inside transaction should be an error