Re: Assertions in PL/PgSQL - Mailing list pgsql-hackers

From Marko Tiikkaja
Subject Re: Assertions in PL/PgSQL
Date
Msg-id 523AEDEF.1060007@joh.to
Whole thread Raw
In response to Re: Assertions in PL/PgSQL  (Pavel Stehule <pavel.stehule@gmail.com>)
Responses Re: Assertions in PL/PgSQL
List pgsql-hackers
On 9/19/13 2:08 PM, Pavel Stehule wrote:
> I think so similar frameworks will be exists (we have some similar
> Probably You and me have a same opinion so only simple and very primitive
> assert is not enough:
>
> I see as useful feature for assertions:
>
> a) possibility to specify a message (two parametric assert)
> b) possibility to specify some threshold
> c) possibility to specify some level (exception, warning, notice) ..
> default should be exception
> c) possibility to specify a handled/unhandled exception

I think these are all neat ideas on how to further improve this feature.  I'd like to see at least a) in 9.4, but I
haven'tyet looked at how it 
 
could be implemented.


Regards,
Marko Tiikkaja



pgsql-hackers by date:

Previous
From: Marko Tiikkaja
Date:
Subject: Re: Assertions in PL/PgSQL
Next
From: Kevin Grittner
Date:
Subject: Re: record identical operator