Re: Assertions in PL/PgSQL

From: Marko Tiikkaja <marko(at)joh(dot)to>
To: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
Cc: Jim Nasby <jim(at)nasby(dot)net>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Assertions in PL/PgSQL
Date: 2013-09-19 12:28:31
Message-ID: 523AEDEF.1060007@joh.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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't yet looked at how it
could be implemented.

Regards,
Marko Tiikkaja

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Kevin Grittner 2013-09-19 12:33:22 Re: record identical operator
Previous Message Marko Tiikkaja 2013-09-19 12:24:30 Re: Assertions in PL/PgSQL