Re: proposal: plpgsql - Assert statement

From: Petr Jelinek <petr(at)2ndquadrant(dot)com>
To: Jan Wieck <jan(at)wi3ck(dot)info>, Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>, Marko Tiikkaja <marko(at)joh(dot)to>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: proposal: plpgsql - Assert statement
Date: 2014-09-06 17:16:37
Message-ID: 540B4175.1080005@2ndquadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 05/09/14 14:35, Jan Wieck wrote:
> On 09/05/2014 04:40 AM, Pavel Stehule wrote:
>
> Adding a WHEN clause to RAISE would have the benefit of not needing any
> new keywords at all.
>
> RAISE EXCEPTION 'format' [, expr ...] WHEN row_count <> 1;
>

+1

--
Petr Jelinek http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Marko Tiikkaja 2014-09-06 17:26:26 Re: proposal: plpgsql - Assert statement
Previous Message Jan Wieck 2014-09-06 17:11:23 Re: PL/pgSQL 2