Re: PL/Perl Does not Like vstrings - Mailing list pgsql-hackers

From Tom Lane
Subject Re: PL/Perl Does not Like vstrings
Date
Msg-id 15638.1325693751@sss.pgh.pa.us
Whole thread Raw
In response to Re: PL/Perl Does not Like vstrings  (Andrew Dunstan <andrew@dunslane.net>)
Responses Re: PL/Perl Does not Like vstrings
Re: PL/Perl Does not Like vstrings
List pgsql-hackers
Andrew Dunstan <andrew@dunslane.net> writes:
> On 01/04/2012 12:47 AM, David E. Wheeler wrote:
>> Oy, this doesn�t look good:
>> $ do LANGUAGE plperl $$ elog(NOTICE, $^V) $$;
>> The connection to the server was lost. Attempting reset: Succeeded.

> Try
>     elog(NOTICE, "$^V")

Isn't this a Perl bug?  It seems to be crashing in SvPVutf8, which
means that either Perl passed something that's not an SV to a function
declared to accept SVs, or that SvPVutf8 fails on some SVs.  Either
way, Perl is failing to satisfy the POLA if you ask me.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Simon Riggs
Date:
Subject: Re: Regarding Checkpoint Redo Record
Next
From: "David E. Wheeler"
Date:
Subject: Re: PL/Perl Does not Like vstrings