Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gcdwk-0000Gt-Mq for pgsql-hackers@arkaria.postgresql.org; Thu, 27 Dec 2018 22:16:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gcdwi-00061q-MH for pgsql-hackers@arkaria.postgresql.org; Thu, 27 Dec 2018 22:16:04 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gcdwi-00061j-FL for pgsql-hackers@lists.postgresql.org; Thu, 27 Dec 2018 22:16:04 +0000 Received: from xvm-110-146.dc2.ghst.net ([46.226.110.146] helo=fetter.org) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gcdwb-00077n-Bc for pgsql-hackers@postgresql.org; Thu, 27 Dec 2018 22:16:04 +0000 Received: by fetter.org (Postfix, from userid 1001) id 998FB41C49; Thu, 27 Dec 2018 23:15:55 +0100 (CET) Date: Thu, 27 Dec 2018 23:15:55 +0100 From: David Fetter To: Alvaro Herrera Cc: Tom Lane , Andrew Dunstan , John Naylor , Robert Haas , Andres Freund , Andrew Gierth , "pgsql-hackers@postgresql.org" Subject: Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Message-ID: <20181227221554.GF416@fetter.org> References: <13700.1545946013@sss.pgh.pa.us> <201812272204.fcmhdb3lrsgv@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201812272204.fcmhdb3lrsgv@alvherre.pgsql> User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Thu, Dec 27, 2018 at 07:04:41PM -0300, Alvaro Herrera wrote: > On 2018-Dec-27, Tom Lane wrote: > > > I poked around a little on my own machines, and I can confirm that > > Getopt::Long is present in a default Perl install-from-source at > > least as far back as perl 5.6.1. It's barely conceivable that some > > packager might omit it from their minimal package, but Red Hat, > > Apple, NetBSD, and OpenBSD all include it. So it sure looks to > > me like relying on it should be non-problematic. > > In Debian it's included in package perl-modules-5.24, which packages > perl and libperl5.24 depend on. I suppose it's possible to install > perl-base and not install perl-modules, but it'd be a really bare-bones > machine. I'm not sure it's possible to build Postgres in such a > machine. $ corelist -a Getopt::Long Data for 2018-11-29 Getopt::Long was first released with perl 5 5 undef 5.001 undef 5.002 2.01 5.00307 2.04 5.004 2.10 5.00405 2.19 5.005 2.17 5.00503 2.19 5.00504 2.20 [much output elided] Fortunately, this has been part of Perl core a lot further back than we promise to support for builds, so I think we're clear to use it everywhere we process options. Best, David. -- David Fetter http://fetter.org/ Phone: +1 415 235 3778 Remember to vote! Consider donating to Postgres: http://www.postgresql.org/about/donate