plperl handler for nonfatal warnings

Started by Andrew Dunstanover 21 years ago3 messagespatches
Jump to latest
#1Andrew Dunstan
andrew@dunslane.net

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.

cheers

andrew

Attachments:

perlwarn.patchtext/x-patch; name=perlwarn.patchDownload+6-2
plperl_elog.outtext/plain; name=plperl_elog.outDownload
plperl_elog.sqltext/x-sql; name=plperl_elog.sqlDownload
#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Andrew Dunstan (#1)
Re: plperl handler for nonfatal warnings

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 ;-)

regards, tom lane

#3Andrew Dunstan
andrew@dunslane.net
In reply to: Tom Lane (#2)
Re: plperl handler for nonfatal warnings

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