Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1ww1bE-001gvQ-3B for pgsql-hackers@arkaria.postgresql.org; Mon, 17 Aug 2026 17:58:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1ww1bC-00Bsuu-2q for pgsql-hackers@arkaria.postgresql.org; Mon, 17 Aug 2026 17:58:16 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1ww1bC-00Bsum-1v for pgsql-hackers@lists.postgresql.org; Mon, 17 Aug 2026 17:58:15 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1ww1bA-00000001Fh4-26Vo for pgsql-hackers@lists.postgresql.org; Mon, 17 Aug 2026 17:58:15 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.18.1/8.18.1) with ESMTP id 67HHw45X821481; Mon, 17 Aug 2026 13:58:04 -0400 From: Tom Lane To: Andrey Rachitskiy cc: andrew@dunslane.net, pgsql-hackers@lists.postgresql.org Subject: Re: Residual cleanups for tied objects in PL/Perl In-reply-to: References: <569769.1786901901@sss.pgh.pa.us> <579928.1786912017@sss.pgh.pa.us> <756684.1786981296@sss.pgh.pa.us> <761068.1786985394@sss.pgh.pa.us> Comments: In-reply-to Andrey Rachitskiy message dated "Mon, 17 Aug 2026 22:26:23 +0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <821479.1786989484.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Mon, 17 Aug 2026 13:58:04 -0400 Message-ID: <821480.1786989484@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Andrey Rachitskiy writes: > sorry, here is the correct link - ` > https://github.com/Perl/perl5/blob/c31ca2013f287840fcddf498ead9602666569= 966/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