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

From Jim Nasby
Subject Re: proposal: plpgsql - Assert statement
Date
Msg-id 54C81B99.50405@BlueTreble.com
Whole thread Raw
In response to Re: proposal: plpgsql - Assert statement  (Pavel Stehule <pavel.stehule@gmail.com>)
Responses Re: proposal: plpgsql - Assert statement
Re: proposal: plpgsql - Assert statement
List pgsql-hackers
On 1/27/15 1:30 PM, Pavel Stehule wrote:
>     I don't see the separate warning as being helpful. I'd just do something like
>
>     +                                (err_hint != NULL) ? errhint("%s", err_hint) : errhint("Message attached to
failedassertion is null") ));
 
>
>
> done
>
>
>     There should also be a test case for a NULL message.
>
>
> is there, if I understand well

I see it now. Looks good.
-- 
Jim Nasby, Data Architect, Blue Treble Consulting
Data in Trouble? Get it in Treble! http://BlueTreble.com



pgsql-hackers by date:

Previous
From: Jim Nasby
Date:
Subject: Re: pg_upgrade and rsync
Next
From: Jim Nasby
Date:
Subject: Re: proposal: row_to_array function