Re: TODO: Add a GUC to control whether BEGIN inside - Mailing list pgsql-hackers

From Tom Lane
Subject Re: TODO: Add a GUC to control whether BEGIN inside
Date
Msg-id 3340.1167750024@sss.pgh.pa.us
Whole thread Raw
In response to Re: TODO: Add a GUC to control whether BEGIN inside  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: TODO: Add a GUC to control whether BEGIN inside
Re: TODO: Add a GUC to control whether BEGIN inside
List pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> writes:
> Am Donnerstag, 28. Dezember 2006 18:57 schrieb Bruce Momjian:
>> I think you can make the case that this should be an error, or at least
>> that's how it got on the TODO list.  I can always remove it if people
>> don't want the item completed.

> The reason this was added is that modular applications expect that a locally 
> issued BEGIN ... COMMIT executes a transaction, whereas now you don't know 
> what you're getting.  I think this change would have merit.

But how is making BEGIN an error going to improve life for such an
application?  It'll be just as broken.  In fact, if the app depends on
getting an error from BEGIN in any critical way, it'll be *more* broken
if it's ever run under the default warning-only setting.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Reverse-sort indexes and NULLS FIRST/LAST sorting
Next
From: Andrew Dunstan
Date:
Subject: Re: Status of Fix Domain Casting TODO