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

From Andrew Dunstan
Subject Re: PL/Perl Does not Like vstrings
Date
Msg-id 4F04D727.5090604@dunslane.net
Whole thread Raw
In response to Re: PL/Perl Does not Like vstrings  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: PL/Perl Does not Like vstrings  ("David E. Wheeler" <david@justatheory.com>)
List pgsql-hackers

On 01/04/2012 05:05 PM, Tom Lane wrote:
>
>> Well, the crash is apparently solved by the following, which your
>> investigation suggested to me:
>> -       cmsg = sv2cstr(msg);
>> +       cmsg = sv2cstr(newSVsv(msg));
> That's kinda grotty ... and leaky ...
>

Of course it is. It wasn't meant as a solution but as validation of your 
suspicions about the nature of the problem. (The leakiness could be 
solved, though.)

cheers

andrew


pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: pg_restore direct to database is broken for --insert dumps
Next
From: Jim Nasby
Date:
Subject: Re: CLOG contention