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 16:49:54
Message-ID: 761068.1786985394@sss.pgh.pa.us
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Ashutosh Bapat 2026-08-17 16:58:34 Re: BgBufferSync(): clarification about reusable_buffers variable
Previous Message Ashutosh Bapat 2026-08-17 16:12:07 Re: BgBufferSync(): clarification about reusable_buffers variable