pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andrey Rachitskiy <pl0h0yp1@gmail.com>
Cc: andrew@dunslane.net
Cc: pgsql-hackers@lists.postgresql.org
Subject: Re: Residual cleanups for tied objects in PL/Perl
Date: Mon, 17 Aug 2026 13:58:04 -0400
Message-ID: <821480.1786989484@sss.pgh.pa.us> (raw)
In-Reply-To: <CAB8bMis+5m1S_VEuGsbGVL=KG+vA8mYXoPdGQQOthwp7QAQSAA@mail.gmail.com>
References: <569769.1786901901@sss.pgh.pa.us>
	<CAB8bMivzt9CGJWM--i3V5MUSXL2FSK2b1DPiJYow2rd9y6pu9A@mail.gmail.com>
	<579928.1786912017@sss.pgh.pa.us>
	<CAB8bMisdLJVgRt5nvUfU=ivCG6V778x225m93fwKXcq2zFvA-w@mail.gmail.com>
	<CAB8bMisM-qSPw2qVnyjTp862LVAKpfX33_y-H1MBGzjAfwAQcg@mail.gmail.com>
	<CAB8bMivZFmWh9vvkF5HBT+Cy9y=nA2NbGhxQapGPUaZ-mNerSA@mail.gmail.com>
	<756684.1786981296@sss.pgh.pa.us>
	<761068.1786985394@sss.pgh.pa.us>
	<CAB8bMit2sRiVWfgW-ms1KciwofjHnDi4T=_xK4Zk2KFm7YBG0w@mail.gmail.com>
	<CAB8bMis+5m1S_VEuGsbGVL=KG+vA8mYXoPdGQQOthwp7QAQSAA@mail.gmail.com>

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

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





view thread (29+ messages)  latest in thread

Message-ID: <821480.1786989484@sss.pgh.pa.us>
Permalink:  ../821480.1786989484@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/821480.1786989484@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, pl0h0yp1@gmail.com, andrew@dunslane.net, pgsql-hackers@lists.postgresql.org
  Subject: Re: Residual cleanups for tied objects in PL/Perl
  In-Reply-To: <821480.1786989484@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox