Remove redundant perl version checks
authorAndrew Dunstan
Wed, 26 Jun 2024 11:01:47 +0000 (07:01 -0400)
committerAndrew Dunstan
Wed, 26 Jun 2024 11:24:35 +0000 (07:24 -0400)
Commit 4c1532763a removed some redundant uses of 'use 5.008001;' in perl
scripts, including in plperl's plc_perlboot.pl. Because it made other
changes it wasn't backpatched. However, now this is causing a failure on
back branches when built with bleeding edge perl. Therefore, backpatch
just that part of it which removed those uses, from 15 all the way down
to 9.2, which is the earliest version currently built in the buildfarm.

per report from Alexander Lakhin

Discussion: https://postgr.es/m/4cc2ee93-e03c-8e13-61ed-412e7e6ff19d@gmail.com

src/pl/plperl/plc_perlboot.pl
src/tools/pgindent/pgindent

index 028c4cea6d12ffbcdd9c6535ff7c1da544718d54..5e248dfd0249ca79d4a1568cacb8648269f091d3 100644 (file)
@@ -6,7 +6,6 @@
 use strict;
 use warnings;
 
-use 5.008001;
 use vars qw(%_SHARED $_TD);
 
 PostgreSQL::InServer::Util::bootstrap();
index f8190b6c354af4a7a0bb6569df30c4042b3d5586..a3afb9db6453d696300911d850f6da21f752e4c7 100755 (executable)
@@ -4,7 +4,6 @@
 
 use strict;
 use warnings;
-use 5.008001;
 
 use Cwd qw(abs_path getcwd);
 use File::Find;