From: | Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org> |
---|---|
To: | Andrew Dunstan <andrew(at)dunslane(dot)net> |
Cc: | Michael Paquier <michael(at)paquier(dot)xyz>, Mark Dilger <mark(dot)dilger(at)enterprisedb(dot)com>, Jehan-Guillaume de Rorthais <jgdr(at)dalibo(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: multi-install PostgresNode fails with older postgres versions |
Date: | 2021-04-22 18:35:13 |
Message-ID: | 20210422183513.GA14549@alvherre.pgsql |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On 2021-Apr-22, Andrew Dunstan wrote:
> # Accept standard formats, in case caller has handed us the
> output of a
> # postgres command line tool
> my $devel;
> ($arg,$devel) = ($1, $2)
> if ($arg =~ m/^(?:\(?PostgreSQL\)? )?(\d+(?:\.\d+)*)(devel)?/);
>
> # Split into an array
> my @result = split(/\./, $arg);
>
> # Treat development versions as having a minor/micro version one
> less than
> # the first released version of that branch.
> push @result, -1 if ($devel);
>
> return bless \(at)result, $class;
WFM, thanks :-)
--
Álvaro Herrera 39°49'30"S 73°17'W
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2021-04-22 18:37:26 | Re: posgres 12 bug (partitioned table) |
Previous Message | Andres Freund | 2021-04-22 18:31:48 | Re: posgres 12 bug (partitioned table) |