Re: pg_config --version

From: Jim Nasby <Jim(dot)Nasby(at)BlueTreble(dot)com>
To: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>, David Fetter <david(at)fetter(dot)org>
Cc: PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: pg_config --version
Date: 2016-11-27 15:12:47
Message-ID: f2c5d9c5-9374-3e42-cc23-a50311cc1492@BlueTreble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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, you can use [1] in shell or Make to
accomplish something similar. Looks like there is a dotted MAJORVERSION
variable going back to at least 9.1, so I could have used that instead
of PGVERSION on line 51.

1: https://github.com/decibel/pgxntool/blob/master/base.mk#L47-L56
--
Jim Nasby, Data Architect, Blue Treble Consulting, Austin TX
Experts in Analytics, Data Architecture and PostgreSQL
Data in Trouble? Get it in Treble! http://BlueTreble.com
855-TREBLE2 (855-873-2532)

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Jim Nasby 2016-11-27 15:20:34 Re: make default TABLESPACE belong to target table.
Previous Message Dave Cramer 2016-11-27 14:17:15 RFC Changing the version number for JDBC