Re: proposal: plpgsql - Assert statement - Mailing list pgsql-hackers

From Jim Nasby
Subject Re: proposal: plpgsql - Assert statement
Date
Msg-id 546A9A30.7040108@BlueTreble.com
Whole thread Raw
In response to Re: proposal: plpgsql - Assert statement  (Simon Riggs <simon@2ndQuadrant.com>)
Responses Re: proposal: plpgsql - Assert statement  (Simon Riggs <simon@2ndQuadrant.com>)
List pgsql-hackers
On 11/17/14, 4:58 PM, Simon Riggs wrote:
>>> Great, looks good to me, marking as ready for committer.
>
> What is wrong with using IF ?

It's a hell of a lot wordier. I've previously created a more sophisticated "assert" framework to allow more control
overthings, but ended up also using it just for simple sanity checking because it was much nicer than typeing IF THEN
RAISEERROR END IF.
 
-- 
Jim Nasby, Data Architect, Blue Treble Consulting
Data in Trouble? Get it in Treble! http://BlueTreble.com



pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: Review of Refactoring code for sync node detection
Next
From: Peter Geoghegan
Date:
Subject: Obsolete debug #define in pg_config_manual.h