Re: [PATCH] configure: allow adding a custom string to PG_VERSION - Mailing list pgsql-hackers

From Oskari Saarenmaa
Subject Re: [PATCH] configure: allow adding a custom string to PG_VERSION
Date
Msg-id 20131119230827.GB9018@saarenmaa.fi
Whole thread Raw
In response to Re: [PATCH] configure: allow adding a custom string to PG_VERSION  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: [PATCH] configure: allow adding a custom string to PG_VERSION  (Michael Paquier <michael.paquier@gmail.com>)
Re: [PATCH] configure: allow adding a custom string to PG_VERSION  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-hackers
On Mon, Nov 18, 2013 at 08:48:13PM -0500, Peter Eisentraut wrote:
> On Tue, 2013-11-05 at 18:29 +0200, Oskari Saarenmaa wrote:
> > This can be used to tag custom built packages with an extra version string
> > such as the git describe id or distribution package release version.
>
> I think this is a reasonable feature, and the implementation is OK, but
> I don't see why the format of the extra version information needs to be
> exactly
>
>     PG_VERSION="$PACKAGE_VERSION ($withval)"
>
> I'd imagine, for example, that someone will want to do -something or
> +something.  So I'd just make this
>
>     PG_VERSION="$PACKAGE_VERSION$withval"
>
> Comments?

Sounds reasonable.

> > +# Allow adding a custom string to PG_VERSION
> > +PGAC_ARG_REQ(with, extra-version, [NAME], [extra version information],
> > +[PG_VERSION="$PACKAGE_VERSION ($withval)"], [PG_VERSION="$PACKAGE_VERSION"])
>
> This could be indented better.  It was a bit confusing at first.

Agreed.  Attached an updated patch, or you can grab it from
https://github.com/saaros/postgres/compare/extra-version

Thanks,
Oskari

Attachment

pgsql-hackers by date:

Previous
From: Alexander Korotkov
Date:
Subject: Re: GIN improvements part2: fast scan
Next
From: Josh Berkus
Date:
Subject: Re: Data corruption issues using streaming replication on 9.0.14/9.2.5/9.3.1