Skip site navigation (1) Skip section navigation (2)

Re: BUG #5339: Version of Perl detected incorrectly

From: Alex Hunsaker <badalex(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Jonathan <jonathan(at)leto(dot)net>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #5339: Version of Perl detected incorrectly
Date: 2010-02-22 21:47:30
Message-ID: 34d269d41002221347v6de60fb8g4e53d541c665b1d0@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-bugs
On Mon, Feb 22, 2010 at 14:31, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Alex Hunsaker <badalex(at)gmail(dot)com> writes:
>> How about something like the below?
>
> I still think that this is optimizing the wrong thing.  We care about
> the clarity of the message the user sees, not about how short or clean
> the Perl code is.  I'm inclined to stay with the same basic
> implementation and just hack up the regexp some more to cope with 5.11's
> more verbose -v output.

Cant argue with that.  However, I dont think my sed foo is up to the
challenge ATM. :)

BTW this is the perl commit that changed it:

commit ded326e4b6fad7e2479796691d0c27b89d2fe080
Author: David Golden <dagolden(at)cpan(dot)org>
Date:   Thu Nov 12 10:46:30 2009 -0500

    Change perl -v version format

    New format:

      This is perl 5, version 11, subversion 1 (v5.11.1) ...

    The rationale for this change is that the Perl 5 interpreter will never
    increment PERL_REVISION from 5 to 6, so we want people to start focusing
    on the PERL_VERSION number as most significant and PERL_SUBVERSION as
    equivalent to a "release number".  In other words, "perl 5" is a
    language, this is the 11th version of it, and the second release of that
    version (counting from zero).  Among other things, this makes the
    output of -v and -V more consistent.

    The old v-string style is included for familiarity and usage in code.
    For builds from git, it will include the same extended format as it
    did before, e.g. "(v5.11.1-176-gaf24cc9*)"

In response to

pgsql-bugs by date

Next:From: Bruce MomjianDate: 2010-02-22 22:38:38
Subject: Re: BUG #5103: "pg_ctl -w (re)start" fails with custom unix_socket_directory
Previous:From: Alex HunsakerDate: 2010-02-22 21:31:40
Subject: Re: BUG #5339: Version of Perl detected incorrectly

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group