Re: [HACKERS] show precise repos version for dev builds? - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: [HACKERS] show precise repos version for dev builds?
Date
Msg-id 9e91fd3f-a912-0ddc-699d-ca785c232e40@2ndquadrant.com
Whole thread Raw
In response to Re: [HACKERS] show precise repos version for dev builds?  (Craig Ringer <craig@2ndquadrant.com>)
Responses Re: [HACKERS] show precise repos version for dev builds?
List pgsql-hackers
On 10/11/17 04:19, Craig Ringer wrote:
> On 11 October 2017 at 11:44, Jeremy Schneider <schneider@ardentperf.com> wrote:
>> On Sun, Oct 1, 2017 at 8:10 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>>>
>>> configure --with-extra-version=whateveryouwant
>>
>> I see that this build option has been around since 9.4; is anyone
>> using it to mark patched production builds?  EnterpriseDB or
>> 2ndQuadrant? How about the cloud providers?
> 
> We started using it for BDR, but unfortunately too much software
> explodes spectacularly when you use it, due to simplistic/buggy
> version parsing.

I've been using

--with-extra-version=+git`date +%Y%m%d`"~"`git rev-parse --short HEAD`

for my local builds for some time, and I've not experienced any such
problems.

However, using the various numeric reporting options is clearly better
if you want to do version comparisons.  The "extra version" stuff should
be mainly for labeling.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

pgsql-hackers by date:

Previous
From: Lukas Fittl
Date:
Subject: Re: [HACKERS] Re: [BUGS] BUG #14821: idle_in_transaction_session_timeoutsometimes gets ignored when statement timeout is pending
Next
From: Masahiko Sawada
Date:
Subject: Re: [HACKERS] Fix a typo in execReplication.c