Re: Residual cleanups for tied objects in PL/Perl

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Andrey Rachitskiy <pl0h0yp1(at)gmail(dot)com>
Cc: andrew(at)dunslane(dot)net, pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: Residual cleanups for tied objects in PL/Perl
Date: 2026-08-17 17:58:04
Message-ID: 821480.1786989484@sss.pgh.pa.us
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Andrey Rachitskiy <pl0h0yp1(at)gmail(dot)com> writes:
> sorry, here is the correct link - `
> https://github.com/Perl/perl5/blob/c31ca2013f287840fcddf498ead9602666569966/cpan/Encode/Encode.xs#L1107`

Yeah, this is an example of the pattern I was talking about: functions
calling SvGETMAGIC on random SV*'s that are passed to them. What
I do not see is SvGETMAGIC being called on values obtained from
hv_iternext or av_fetch. Maybe all the internal usages in Perl are
working with hashes/arrays that they know aren't tied, but that
seems unlikely.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2026-08-17 18:08:28 Re: Residual cleanups for tied objects in PL/Perl
Previous Message Andrey Rachitskiy 2026-08-17 17:26:23 Re: Residual cleanups for tied objects in PL/Perl