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

From Marko Tiikkaja
Subject Re: Assertions in PL/PgSQL
Date
Msg-id 52363106.2060000@joh.to
Whole thread Raw
In response to Re: Assertions in PL/PgSQL  (Jaime Casanova <jaime@2ndquadrant.com>)
Responses Re: Assertions in PL/PgSQL
Re: Assertions in PL/PgSQL
List pgsql-hackers
On 2013-09-15 23:23, Jaime Casanova wrote:
> If using ASSERT as keyword is not acceptable, not that i agree but in case.
> What about using RAISE EXCEPTION WHEN (condition)

I think it would be extremely surprising if a command like that got 
optimized away based on a GUC, so I don't think that would be a good idea.


Regards,
Marko Tiikkaja



pgsql-hackers by date:

Previous
From: Jeff Janes
Date:
Subject: Re: Where to load modules from?
Next
From: Jaime Casanova
Date:
Subject: Re: Assertions in PL/PgSQL