Re: Residual cleanups for tied objects in PL/Perl

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: Residual cleanups for tied objects in PL/Perl
Date: 2026-08-17 18:44:26
Message-ID: 108ad484-2578-482b-81e4-a5f1f9749062@dunslane.net
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


On 2026-08-16 Su 5:10 PM, Andrew Dunstan wrote:
>
> On 2026-08-16 Su 3:04 PM, Tom Lane wrote:
>> Andrew Dunstan <andrew(at)dunslane(dot)net> writes:
>>> On 2026-08-16 Su 1:38 PM, Tom Lane wrote:
>>>> The test cases I have that reach these bugs require Perl "Tie"
>>>> modules that aren't present in common Perl installations,
>>>> so I'm not planning on trying to construct regression test
>>>> entries for them.  But I've attached two SQL scripts that
>>>> cause failures without the patch.
>>> Which modules?
>> At least Tie::Array isn't present in RHEL10's standard perl
>> package set --- I had to install "perl-Tie" to get that test
>> case to run here.
>
>
> That seems odd, given that we use Tie::Hash and Tie::StdHash in
> src/pl/plperl/plc_trusted.pl
>
>

Answering myself, it appears that those are part of RHEL10's perl-libs
package, while Tie::Array and Tie::StdArray are part of the perl-Tie
package. That seems at first glance like a really awful packaging
decision, something not entirely without precedent.

cheers

andrew

--
Andrew Dunstan
EDB: https://www.enterprisedb.com

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2026-08-17 18:58:07 Re: Residual cleanups for tied objects in PL/Perl
Previous Message Andrey Rachitskiy 2026-08-17 18:41:05 Re: Fix PGTYPESdate_fmt_asc overflow when a year does not fit "yyyy"