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

From Pavel Stehule
Subject Re: proposal: plpgsql - Assert statement
Date
Msg-id CAFj8pRD9W7ozf5NPepWS1T7psgNLhncSkxoy6hoHaiM0NYNg0Q@mail.gmail.com
Whole thread Raw
In response to Re: proposal: plpgsql - Assert statement  (Jim Nasby <Jim.Nasby@BlueTreble.com>)
List pgsql-hackers


2015-01-28 0:13 GMT+01:00 Jim Nasby <Jim.Nasby@bluetreble.com>:
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 failed assertion 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.

please, can you enhance a documentation part - I am sorry, my English skills are not enough

Thank you

Pavel

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

pgsql-hackers by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: proposal: row_to_array function
Next
From: Amit Kapila
Date:
Subject: Re: Parallel Seq Scan