Re: plperl handler for nonfatal warnings - Mailing list pgsql-patches

From Andrew Dunstan
Subject Re: plperl handler for nonfatal warnings
Date
Msg-id 42ADF518.4060000@dunslane.net
Whole thread Raw
In response to Re: plperl handler for nonfatal warnings  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-patches

Tom Lane wrote:

>Andrew Dunstan <andrew@dunslane.net> writes:
>
>
>>Currently, nonfatal warnings are not trapped (as they should be) by
>>plperl - the attached small patch remedies that omission, and adds a
>>small regression test for error and warning output - the new regression
>>input and expected output are in separate attached files.
>>
>>
>
>Where's the documentation patch ;-)
>
>

If you think it matters enough - I take your smiley to indicate doubt on
the matter :-) -  add this sentence somewhere in plperl.sgml:

"Non-fatal warnings either from the perl interpreter or from user code
calling perl's builtin warn() function are translated to NOTICE level
log messages."

cheers

andrew



pgsql-patches by date:

Previous
From: Tom Lane
Date:
Subject: Re: plperl handler for nonfatal warnings
Next
From: Pavel Stehule
Date:
Subject: Re: plpgsql raise - parameters can be expressions