Re: Exposing PG_VERSION_NUM in pg_config

From: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
To: Andrew Gierth <andrew(at)tao11(dot)riddles(dot)org(dot)uk>
Cc: PostgreSQL mailing lists <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Exposing PG_VERSION_NUM in pg_config
Date: 2015-03-24 01:12:49
Message-ID: CAB7nPqTFUAqyeuJcRreUtV8Ed8em9TaAmcDAPiiruOQrqpmNGQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Mar 24, 2015 at 4:06 AM, Andrew Gierth
<andrew(at)tao11(dot)riddles(dot)org(dot)uk> wrote:
>>>>>> "Michael" == Michael Paquier <michael(dot)paquier(at)gmail(dot)com> writes:
>
> Michael> Hi all,
> Michael> When working on extensions or packaging, one can do some
> Michael> grep-ing on pg_config.h to get PG_VERSION_NUM to do
> Michael> version-related operations. An example of that is the Makefile
> Michael> of plv8 using --include-dir with perl and a regex:
>
> MAJORVERSION is defined in Makefile.global as included by PGXS, fwiw.

Well, my point is to have something on which you can directly apply
maths on without changing its shape ;)
--
Michael

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Paquier 2015-03-24 01:45:15 Re: Table-level log_autovacuum_min_duration
Previous Message Peter Geoghegan 2015-03-24 01:12:39 Re: Abbreviated keys for Numeric