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 4F05D8F9.3010909@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/05/2012 10:34 AM, Tom Lane wrote:
>
> Unconditional sv_mortalcopy sounds like the thing to do then, but a
> comment would help.  And if this isn't a Perl bug, I would like to
> know what is.

Indeed. David, can you file a bug on this?

>
> BTW, shouldn't we be making some attempt to drop the result of the
> sv_mortalcopy?  Or is it just assumed that it will be garbage-collected
> before the memory leak gets too bad?
>
>             


Yes, it will be garbage collected before long. See discussion in perldoc 
perlguts.

cheers

andrew


pgsql-hackers by date:

Previous
From: "Kevin Grittner"
Date:
Subject: Re: Client Messages
Next
From: "David E. Wheeler"
Date:
Subject: Re: PL/Perl Does not Like vstrings