Re: pg_config --version

From: David Fetter <david(at)fetter(dot)org>
To: Jim Nasby <Jim(dot)Nasby(at)BlueTreble(dot)com>
Cc: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>, PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: pg_config --version
Date: 2016-11-27 20:25:21
Message-ID: 20161127202521.GC21874@fetter.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Sun, Nov 27, 2016 at 09:12:47AM -0600, Jim Nasby wrote:
> On 11/27/16 12:16 AM, Michael Paquier wrote:
> > date: Thu, 2 Jul 2015 17:24:36 -0400
> > Make numeric form of PG version number readily available in Makefiles.
>
> If you don't want to wait for that,

I wonder whether a back-patch to 9.2 with that would be accepted...

> you can use [1] in shell

I'd like to make as few assumptions about build environments as I can.
I know for sure that people are building my things on platforms like
Windows that I have no way to test, but don't wish to break.

> or Make to accomplish something similar. Looks like there is a
> dotted MAJORVERSION variable going back to at least 9.1,

Good to know. I guess I can rely on there being a GNU make...at least
for now.

> so I could have used that instead of PGVERSION on line 51.
> 1: https://github.com/decibel/pgxntool/blob/master/base.mk#L47-L56

Thanks for sharing :)

Best,
David.
--
David Fetter <david(at)fetter(dot)org> http://fetter.org/
Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter
Skype: davidfetter XMPP: david(dot)fetter(at)gmail(dot)com

Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2016-11-27 20:47:40 Re: PATCH: two slab-like memory allocators
Previous Message Tom Lane 2016-11-27 19:50:33 Re: User-defined Operator Pushdown and Collations