Re: PL_stashcache, or, what's our minimum Perl version?
Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Noah Misch <noah@leadboat.com>, Andrew Dunstan <andrew@dunslane.net>,
pgsql-hackers@postgresql.org
Date: 2017-07-31T19:37:25Z
Lists: pgsql-hackers
On 7/31/17 15:17, Peter Eisentraut wrote: > On 7/31/17 14:55, Tom Lane wrote: >>> We use the "PATH" variants when we need a fully qualified name. For >>> example, at some point or another, we needed to substitute a fully >>> qualified perl binary name into the headers of scripts. >> >>> If there is no such requirement, then we should use the non-PATH variants. >> >> Why? That risks failures of various sorts, and you have not stated >> any actual benefit of it. > > What I wrote is merely a description of the current practice. That > practice was in turn developed out of ancient Autoconf standard > practices. There are arguments to be made for doing it differently. > > One major PITA with the AC_PATH_* checks is that you can only override > them with environment variables that are full paths; otherwise the > environment variables are ignored. For example, currently, running > > ./configure PYTHON=python3 > > will result in the PYTHON setting being ignored. Currently, this only > affects a small number of variables, but if we expanded that, it would > be a pretty significant usability change. Plus certain special macros such as AC_PROG_CC don't have a PATH variant, so you're always going to have some inconsistencies. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
Commits
-
Adjust configure to insist on Perl version >= 5.8.3.
- 92e6a98c3636 15.0 landed
-
Further improve consistency of configure's program searching.
- b21c569cea58 10.0 landed
-
Doc: specify that the minimum supported version of Perl is 5.8.3.
- dea6ba939fd2 10.0 landed
- d6f87a23d016 9.5.8 landed
- c522b52d3cf2 9.2.22 landed
- 3bf894feebcb 9.3.18 landed
- 3521131cb120 9.6.4 landed
- 23c20e83d681 9.4.13 landed
-
Record full paths of programs sought by "configure".
- 40b9f192170a 10.0 landed
-
Abandon the use of Perl's Safe.pm to enforce restrictions in plperl, as it is
- 1f474d299d02 9.0.0 cited