Re: Remove win32ver.rc from version_stamp.pl

From: Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Remove win32ver.rc from version_stamp.pl
Date: 2020-03-10 10:54:58
Message-ID: 67111310-fbdb-132d-05b1-9566a6b59e98@2ndquadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 2020-03-09 15:55, Tom Lane wrote:
> Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com> writes:
>> On 2020-03-01 23:51, Tom Lane wrote:
>>> In general, while I'm on board with the idea, I wonder whether it
>>> wouldn't be smarter to keep on defining PG_MAJORVERSION as a string,
>>> and just add PG_MAJORVERSION_NUM alongside of it.
>
>> Agreed. Here is another patch.
>
> This version LGTM. (I can't actually test the Windows aspects
> of this, but I assume you did.)

committed

> I'm wondering a little bit whether it'd be worth back-patching the
> additions of the new #defines. That would cut about five years off
> the time till they could be relied on by extensions. However,
> I'm not sure anyone is eager to rely on them, so it may not be
> worth the effort.

I doubt external code really needs these symbols. You can always use
PG_VERSION_NUM.

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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Daniel Gustafsson 2020-03-10 11:41:51 Re: [PATCH] Use PKG_CHECK_MODULES to detect the libxml2 library
Previous Message Hugh McMaster 2020-03-10 10:53:14 [PATCH] Use PKG_CHECK_MODULES to detect the libxml2 library