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 1ww0XI-001gJo-3A for pgsql-hackers@arkaria.postgresql.org; Mon, 17 Aug 2026 16:50:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1ww0XF-00BhBo-2v for pgsql-hackers@arkaria.postgresql.org; Mon, 17 Aug 2026 16:50:07 +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 1ww0XF-00BhBg-1y for pgsql-hackers@lists.postgresql.org; Mon, 17 Aug 2026 16:50:06 +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 1ww0XD-00000001FF1-1w7D for pgsql-hackers@lists.postgresql.org; Mon, 17 Aug 2026 16:50:06 +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 67HGnsKS761069; Mon, 17 Aug 2026 12:49:54 -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: <756684.1786981296@sss.pgh.pa.us> References: <569769.1786901901@sss.pgh.pa.us> <579928.1786912017@sss.pgh.pa.us> <756684.1786981296@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Mon, 17 Aug 2026 11:41:36 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <761067.1786985394.1@sss.pgh.pa.us> Date: Mon, 17 Aug 2026 12:49:54 -0400 Message-ID: <761068.1786985394@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk I spent some time digging through the Perl documentation and source code, and I'm starting to have doubts about this idea of "fix it by applying SvGETMAGIC to array/hash entries". I can't see anything in the documentation recommending such an approach, and I don't see any of their own code doing so either. Pretty much all their calls to SvGETMAGIC are in functions that have been passed a scalar value from elsewhere. So while this may work today, I'm unconvinced that it's idiomatic or future-proof. Can you point at any production code that is doing it this way? regards, tom lane