Re: What about Perl autodie?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Daniel Gustafsson <daniel(at)yesql(dot)se>
Cc: Peter Eisentraut <peter(at)eisentraut(dot)org>, John Naylor <johncnaylorls(at)gmail(dot)com>, Greg Sabino Mullane <htamfids(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: What about Perl autodie?
Date: 2024-02-08 15:53:06
Message-ID: 965557.1707407586@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Daniel Gustafsson <daniel(at)yesql(dot)se> writes:
>> On 8 Feb 2024, at 08:01, Peter Eisentraut <peter(at)eisentraut(dot)org> wrote:
>> I suppose we could start using it for completely new scripts.

> +1, it would be nice to eventually be able to move to it everywhere so starting
> now with new scripts may make the eventual transition smoother.

I'm still concerned about people carelessly using autodie-reliant
code in places where they shouldn't. I offer two safer ways
forward:

1. Wait till v16 is the oldest supported branch, and then migrate
both HEAD and back branches to using autodie.

2. Don't wait, migrate them all now. This would mean requiring
Perl 5.10.1 or later to run the TAP tests, even in back branches.

I think #2 might not be all that radical. We have nothing older
than 5.14.0 in the buildfarm, so we don't really have much grounds
for claiming that 5.8.3 will work today. And 5.10.1 came out in
2009, so how likely is it that anyone cares anymore?

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Daniel Gustafsson 2024-02-08 16:08:01 Re: What about Perl autodie?
Previous Message Maiquel Grassi 2024-02-08 15:50:20 RE: Psql meta-command conninfo+