Re: PL/PgSQL: EXIT USING ROLLBACK

From: Marko Tiikkaja <marko(at)joh(dot)to>
To: Simon Riggs <simon(at)2ndQuadrant(dot)com>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: PL/PgSQL: EXIT USING ROLLBACK
Date: 2014-07-28 09:34:41
Message-ID: 53D61931.8060900@joh.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 7/28/14 11:27 AM, Simon Riggs wrote:
> On 26 July 2014 18:14, Marko Tiikkaja <marko(at)joh(dot)to> wrote:
>
>> Today I'd like to present a way to get rid of code like this:
>
> You haven't explained this very well... there is nothing that explains
> WHY you want this.
>
> In the absence of a good explanation and a viable benefit, I would
> vote -1 for this feature suggestion.

Yes, I did a poor job in the original email, but I did explain my
reasoning later:

> Yes, you can already do this with RAISE but that seems more like an
> accident than anything else. I feel a dedicated syntax is less error
> prone and makes the intent clearer to people reading the code. But I
> realize I might be in the minority with this.

I guess -3, +0 is enough that I'll be dropping the patch. Thanks to
everyone who had a look.

.marko

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Kyotaro HORIGUCHI 2014-07-28 09:47:57 Re: Use unique index for longer pathkeys.
Previous Message Simon Riggs 2014-07-28 09:27:02 Re: PL/PgSQL: EXIT USING ROLLBACK